diff options
author | hackademix <giorgio@maone.net> | 2019-03-05 00:58:13 +0100 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2019-03-05 00:58:13 +0100 |
commit | 3f325cea256c5fd082a1c029d27f63ab93440ba6 (patch) | |
tree | ac2367c1a0a5e967bd83a5760f85c85b65685d08 /common | |
parent | 5d9ab3778bcdb12913333deff64196590688789f (diff) |
Fixed inline whitelisting regressions (issue #35).
Diffstat (limited to 'common')
-rw-r--r-- | common/Storage.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/Storage.js b/common/Storage.js index a83ce8f..415b4bb 100644 --- a/common/Storage.js +++ b/common/Storage.js @@ -66,6 +66,9 @@ class ListStore { }); } + static viewSourceItem(url) { + return url.startsWith("view-source:") && url.replace(/#line\d+/,"#"); + } static hashItem(hash) { return hash.startsWith("(") ? hash : `(${hash})`; } |