Fix memory crashing on allegro
This commit is contained in:
parent
721287b0d5
commit
4de71fbc1d
|
@ -60,7 +60,7 @@ export default class ExtendedRequest {
|
||||||
const tab = await browser.tabs.get(this.data.tabId);
|
const tab = await browser.tabs.get(this.data.tabId);
|
||||||
url = tab.url;
|
url = tab.url;
|
||||||
} else {
|
} else {
|
||||||
url = (this.data as any).frameAncestors[0].url;
|
url = (this.data as any).frameAncestors?.[0].url || "";
|
||||||
}
|
}
|
||||||
this.originalURL = url;
|
this.originalURL = url;
|
||||||
this.origin = new URL(url).origin;
|
this.origin = new URL(url).origin;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user