diff --git a/package.json b/package.json index a5060cba..141d40cd 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "install_manifests": "nvim --headless -u NORC -i NONE -n -c \":set rtp+=.\" -c \"call firenvim#install(1)\" -c \"quit\"", "jest": "jest", "nyc": "nyc", + "lint": "addons-linter target/xpi/firefox-latest.xpi", "pack": "web-ext build --source-dir target/firefox --artifacts-dir target/xpi --overwrite-dest", "tests": "npm run test-firefox && npm run test-chrome", "test-firefox": "webpack --env=firefox-testing && nyc instrument --in-place target/firefox && web-ext build --source-dir target/firefox --artifacts-dir target/xpi --overwrite-dest && jest firefox", diff --git a/src/FirenvimElement.ts b/src/FirenvimElement.ts index b3fa4143..c3f49dbe 100644 --- a/src/FirenvimElement.ts +++ b/src/FirenvimElement.ts @@ -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