Fix memory crashing on allegro

This commit is contained in:
Kuba Orlik 2021-11-08 20:36:05 +01:00
parent 721287b0d5
commit 4de71fbc1d

View File

@ -60,7 +60,7 @@ export default class ExtendedRequest {
const tab = await browser.tabs.get(this.data.tabId);
url = tab.url;
} else {
url = (this.data as any).frameAncestors[0].url;
url = (this.data as any).frameAncestors?.[0].url || "";
}
this.originalURL = url;
this.origin = new URL(url).origin;