Skip to content

Commit

Permalink
Now a warning about activating a dynamic theme is shown only if you h…
Browse files Browse the repository at this point in the history
…ave not accepted it
  • Loading branch information
adokseo committed Oct 5, 2021
1 parent a977262 commit 93af65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Dark Mode",
"version": "2.0.9",
"version": "2.0.10",
"description": "Dark Mode, read at night. Bluelight filter for every website. Relax your eyes at night and day.",
"default_locale": "en",
"icons": {
Expand Down
4 changes: 3 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ var current_domain,
}
},
click: function () {
if (this.dataset.value === 'true') {
if (this.dataset.value === 'true' && satus.storage.get('dynamic-theme-warning') !== true) {
satus.render({
component: 'modal',
parent: this.skeleton,
Expand Down Expand Up @@ -239,6 +239,8 @@ var current_domain,
satus.storage.set('filters/dynamic-theme', value);
}

satus.storage.set('dynamic-theme-warning', true);

modal.close();
}
}
Expand Down

0 comments on commit 93af65c

Please sign in to comment.