summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/document.js2
-rw-r--r--ext/fg/js/popup.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js
index a168705e..8161c85a 100644
--- a/ext/fg/js/document.js
+++ b/ext/fg/js/document.js
@@ -359,7 +359,7 @@ function isElementTransparent(element) {
}
const style = window.getComputedStyle(element);
return (
- parseFloat(style.opacity) < 0 ||
+ parseFloat(style.opacity) <= 0 ||
style.visibility === 'hidden' ||
(style.backgroundImage === 'none' && isColorTransparent(style.backgroundColor))
);
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 1f9317e0..ac96f9e8 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -391,7 +391,7 @@ class Popup {
static isOnExtensionPage() {
try {
const url = chrome.runtime.getURL('/');
- return window.location.href.substr(0, url.length) === url;
+ return window.location.href.substring(0, url.length) === url;
} catch (e) {
// NOP
}