Skip to content

Commit

Permalink
Avoid welcome page workaround opening on update
Browse files Browse the repository at this point in the history
Following up on #2798
  • Loading branch information
ghostwords committed Nov 23, 2021
1 parent 51f4229 commit 12fa27f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ function Badger() {

let privateStore = self.getPrivateSettings();
if (self.isFirstRun) {
privateStore.setItem("firstRunTimerFinished", false);

// work around the welcome page getting closed by an extension restart
// such as in response to being granted Private Browsing permission
// from the post-install doorhanger on Firefox
Expand Down Expand Up @@ -873,7 +875,7 @@ Badger.prototype = {

// initialize any other private store (not-for-export) settings
let privateDefaultSettings = {
firstRunTimerFinished: false,
firstRunTimerFinished: true,
showLearningPrompt: false,
};
for (let key of Object.keys(privateDefaultSettings)) {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2021.11.23",
"version": "2021.11.23.1",
"author": {
"email": "[email protected]"
},
Expand Down

0 comments on commit 12fa27f

Please sign in to comment.