diff options
author | Jesús <heckyel@hyperbola.info> | 2019-09-21 20:55:00 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-09-21 20:55:00 -0500 |
commit | d610c87a53736071e1d7c8c7252268b6ceeaae4f (patch) | |
tree | fca8396a97237e15d64e2ac74096550e8262ffc7 /js/tab.js | |
parent | 0bbba59da4099bbbbe77ddbc20a0caebbf28fe80 (diff) | |
download | ematrix-d610c87a53736071e1d7c8c7252268b6ceeaae4f.tar.lz ematrix-d610c87a53736071e1d7c8c7252268b6ceeaae4f.tar.xz ematrix-d610c87a53736071e1d7c8c7252268b6ceeaae4f.zip |
Improve syntax
Diffstat (limited to 'js/tab.js')
-rw-r--r-- | js/tab.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |