From 4de71fbc1def2a3966f98b234e7d25a98abb9d3f Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Mon, 8 Nov 2021 20:36:05 +0100 Subject: [PATCH] Fix memory crashing on allegro --- extended-request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extended-request.ts b/extended-request.ts index 073f689..a8b85c2 100644 --- a/extended-request.ts +++ b/extended-request.ts @@ -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;