aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-08-27 10:52:52 +0200
committerWojtek Kosior <koszko@koszko.org>2021-08-27 10:52:52 +0200
commit48f76d7004da4bd4998d0c79266c62f893cfa7d3 (patch)
tree44b29505c9e466f1acb4f3aba5fb026fde834bd0 /content
parent538376341e9a50ebd350897fe26f43c433f0ee06 (diff)
downloadbrowser-extension-48f76d7004da4bd4998d0c79266c62f893cfa7d3.tar.gz
browser-extension-48f76d7004da4bd4998d0c79266c62f893cfa7d3.zip
add support for `ftp://' protocol
Diffstat (limited to 'content')
-rw-r--r--content/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/main.js b/content/main.js
index 06d3bf1..6c97350 100644
--- a/content/main.js
+++ b/content/main.js
@@ -109,7 +109,7 @@ if (!is_privileged_url(document.URL)) {
document.cookie = `hachette-${signature}=; Max-Age=-1;`;
} else {
const scheme = /^([^:]*)/.exec(document.URL)[1];
- const known_scheme = ["file"].includes(scheme);
+ const known_scheme = ["file", "ftp"].includes(scheme);
if (!known_scheme)
console.warn(`Unknown url scheme: \`${scheme}'!`);