Skip to content

Commit fd7ad76

Browse files
committed
Fixed re-inverting elements in <iframe>
1 parent 93af65c commit fd7ad76

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

content-scripts.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,10 @@ function filters() {
307307
grayscale = storage['grayscale'] / 100,
308308
style = '';
309309

310-
if (invert !== false && isPage()) {
311-
style = 'invert(1)';
310+
if (invert !== false) {
311+
if (isPage()) {
312+
style = 'invert(1)';
313+
}
312314

313315
html.dataset.invertColors = true;
314316
} else {

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Dark Mode",
4-
"version": "2.0.10",
4+
"version": "2.0.11",
55
"description": "Dark Mode, read at night. Bluelight filter for every website. Relax your eyes at night and day.",
66
"default_locale": "en",
77
"icons": {

0 commit comments

Comments
 (0)