aboutsummaryrefslogtreecommitdiffstats
path: root/js/tab.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-09-21 20:55:00 -0500
committerJesús <heckyel@hyperbola.info>2019-09-21 20:55:00 -0500
commitd610c87a53736071e1d7c8c7252268b6ceeaae4f (patch)
treefca8396a97237e15d64e2ac74096550e8262ffc7 /js/tab.js
parent0bbba59da4099bbbbe77ddbc20a0caebbf28fe80 (diff)
downloadematrix-d610c87a53736071e1d7c8c7252268b6ceeaae4f.tar.lz
ematrix-d610c87a53736071e1d7c8c7252268b6ceeaae4f.tar.xz
ematrix-d610c87a53736071e1d7c8c7252268b6ceeaae4f.zip
Improve syntax
Diffstat (limited to 'js/tab.js')
-rw-r--r--js/tab.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tab.js b/js/tab.js
index 008ea30..abaaf07 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -52,11 +52,11 @@
// https://github.com/gorhill/uMatrix/issues/992
if (pageURL.startsWith('wyciwyg:')) {
- // Matches strings like 'wyciwyg://101/'
- let filter = /^wyciwyg:\/\/\d+\//.exec(pageURL);
- if (filter) {
- pageURL = pageURL.slice(filter[0].length);
- }
+ // Matches strings like 'wyciwyg://101/'
+ let filter = /^wyciwyg:\/\/\d+\//.exec(pageURL);
+ if (filter) {
+ pageURL = pageURL.slice(filter[0].length);
+ }
}
// If the URL is that of our "blocked page" document, return the URL of