Revision 48f76d70
Added by koszko about 2 years ago
content/main.js | ||
---|---|---|
109 | 109 |
document.cookie = `hachette-${signature}=; Max-Age=-1;`; |
110 | 110 |
} else { |
111 | 111 |
const scheme = /^([^:]*)/.exec(document.URL)[1]; |
112 |
const known_scheme = ["file"].includes(scheme); |
|
112 |
const known_scheme = ["file", "ftp"].includes(scheme);
|
|
113 | 113 |
|
114 | 114 |
if (!known_scheme) |
115 | 115 |
console.warn(`Unknown url scheme: \`${scheme}'!`); |
Also available in: Unified diff
add support for `ftp://' protocol