Fix: use FIREFOX variable
This commit is contained in:
parent
2b614bdee2
commit
5f5b06b10c
|
@ -379,7 +379,7 @@ function download(url) {
|
||||||
'Content-type': 'application/x-www-form-urlencoded'
|
'Content-type': 'application/x-www-form-urlencoded'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (url.protocol === 'file:' && navigator.userAgent.includes('Firefox')) {
|
if (url.protocol === 'file:' && FIREFOX) {
|
||||||
// https://stackoverflow.com/questions/42108782/firefox-webextensions-get-local-files-content-by-path
|
// https://stackoverflow.com/questions/42108782/firefox-webextensions-get-local-files-content-by-path
|
||||||
options.mode = 'same-origin';
|
options.mode = 'same-origin';
|
||||||
// FIXME: add FetchController when it is available.
|
// FIXME: add FetchController when it is available.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user