Skip to content

Commit

Permalink
Fix mozilla-services#4183, make onboarding behaviour consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
testeaxeax committed Apr 14, 2018
1 parent d35cc6b commit d304b70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon/webextension/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ this.main = (function() {
sendEvent(event, "toolbar-button", {incognito: tab.incognito});
}, (error) => {
if ((!onboarded) && error.popupMessage === "UNSHOOTABLE_PAGE") {
senderror.showError({
popupMessage: "UNSHOOTABLE_PAGE"
});
sendEvent("goto-onboarding", "selection-button", {incognito: tab.incognito});
return forceOnboarding();
}
Expand All @@ -138,6 +141,8 @@ this.main = (function() {
senderror.showError({
popupMessage: "UNSHOOTABLE_PAGE"
});
sendEvent("goto-onboarding", "selection-button", {incognito: tab.incognito});
forceOnboarding();
return;
}
catcher.watchPromise(
Expand Down

0 comments on commit d304b70

Please sign in to comment.