fix styling of options frame in FF (#1022)

This commit is contained in:
tophf 2020-08-19 22:33:04 +03:00 committed by GitHub
parent a0172c262c
commit 56f1574433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {