Skip to content

Commit

Permalink
Fix only 2024 popup welcome page bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin committed Mar 26, 2018
1 parent f3c0faa commit 97f28dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ext/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ storage.Read( () => {
});
});
// only firefox and only usage 1.1.0.3024
if ( ver.version == storage.version && ver.sub_ver == "3024" && !localStorage["first"] ) {
if ( ver.version == storage.version && ver.sub_ver == "3024" && !localStorage["bg-3024"] ) {
browser.tabs.create({ url: browser.extension.getURL( "options/options.html#firstload?ver=" + ver.version ) });
localStorage["first"] = ver.sub_ver;
localStorage["bg-3024"] = ver.sub_ver;
}
}
menu.CreateAll();
Expand Down
5 changes: 2 additions & 3 deletions src/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ storage.Read( first => {
waves.Render({ root: "body" });
vernotify( first );
// only firefox and only usage 1.1.0.3024
if ( !first && ver.sub_ver != "" && br.isFirefox() && !localStorage["first"] ) {
if ( br.isFirefox() && ver.sub_ver == "3024" && !localStorage["opt-3024"] ) {
welcomeRender( true );
localStorage["first"] = ver.sub_ver;
localStorage["opt-3024"] = ver.sub_ver;
}
first && ( localStorage["first"] = ver.sub_ver );
});

/**
Expand Down

0 comments on commit 97f28dc

Please sign in to comment.