fix styling of options frame in FF

This commit is contained in:
tophf 2020-08-19 20:10:11 +03:00
parent a0172c262c
commit cf7ad7d96b

View File

@ -64,7 +64,7 @@ self.INJECTED !== 1 && (() => {
function getMatchUrl() { function getMatchUrl() {
let matchUrl = location.href; let matchUrl = location.href;
if (!matchUrl.match(/^(http|file|chrome|ftp)/)) { if (!chrome.tabs && !matchUrl.match(/^(http|file|chrome|ftp)/)) {
// dynamic about: and javascript: iframes don't have an URL yet // dynamic about: and javascript: iframes don't have an URL yet
// so we'll try the parent frame which is guaranteed to have a real URL // so we'll try the parent frame which is guaranteed to have a real URL
try { try {