aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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})`;
}