Skip to content

Commit

Permalink
FirenvimElement.ts: use s/browser.extension/browser.runtime/
Browse files Browse the repository at this point in the history
extension has apparently been deprecated by Mozilla some time ago
  • Loading branch information
glacambre committed Apr 28, 2024
1 parent 9279273 commit 4a9b47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FirenvimElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class FirenvimElement {
})(this));
this.resizeObserver.observe(this.getElement(), { box: "border-box" });

this.iframe.src = (browser as any).extension.getURL("/index.html");
this.iframe.src = (browser as any).runtime.getURL("/index.html");
this.span.attachShadow({ mode: "closed" }).appendChild(this.iframe);

// So pages (e.g. Jira, Confluence) remove spans from the page as soon
Expand Down

0 comments on commit 4a9b47c

Please sign in to comment.