aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2019-03-05 00:58:13 +0100
committerhackademix <giorgio@maone.net>2019-03-05 00:58:13 +0100
commit3f325cea256c5fd082a1c029d27f63ab93440ba6 (patch)
treeac2367c1a0a5e967bd83a5760f85c85b65685d08 /common
parent5d9ab3778bcdb12913333deff64196590688789f (diff)
Fixed inline whitelisting regressions (issue #35).
Diffstat (limited to 'common')
-rw-r--r--common/Storage.js3
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})`;
}