From 3f325cea256c5fd082a1c029d27f63ab93440ba6 Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 5 Mar 2019 00:58:13 +0100 Subject: Fixed inline whitelisting regressions (issue #35). --- common/Storage.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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})`; } -- cgit v1.2.3