Skip to content

Commit

Permalink
Option to disable firstrun/update popups
Browse files Browse the repository at this point in the history
Repurpose "NO_NAG" option. When activated it will disable the popups during first run and extension updates.
  • Loading branch information
aciidic committed Feb 28, 2021
1 parent 0726b82 commit 03c4a53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
ignoreCache: gsStorage.IGNORE_CACHE,
addContextMenu: gsStorage.ADD_CONTEXT,
syncSettings: gsStorage.SYNC_SETTINGS,
noNag: gsStorage.NO_NAG,
timeToSuspend: gsStorage.SUSPEND_TIME,
theme: gsStorage.THEME,
whitelist: gsStorage.WHITELIST,
Expand Down Expand Up @@ -73,7 +74,7 @@
setSyncNoteVisibility(!gsStorage.getOption(gsStorage.SYNC_SETTINGS));

let searchParams = new URL(location.href).searchParams;
if (searchParams.has('firstTime')) {
if (searchParams.has('firstTime') && !gsStorage.getOption(gsStorage.NO_NAG)) {
document
.querySelector('.welcome-message')
.classList.remove('reallyHidden');
Expand Down

0 comments on commit 03c4a53

Please sign in to comment.