Fix endless loop of adding .png to image URL.
This commit is contained in:
parent
c379fe80fb
commit
be561addfa
@ -21,7 +21,7 @@ export function getURI (url) {
|
||||
|
||||
function checkFileTypes (types, url) {
|
||||
const uri = getURI(url);
|
||||
if (uri === null || (window.location.protocol !== 'chrome-extension:' && !checkTLS(uri))) {
|
||||
if (uri === null || (!['chrome-extension:','file:'].includes(window.location.protocol) && !checkTLS(uri))) {
|
||||
return false;
|
||||
}
|
||||
const filename = uri.filename().toLowerCase();
|
||||
|
Loading…
Reference in New Issue
Block a user