Skip to content

Commit

Permalink
refactor: use >= instead of === in manifest version check
Browse files Browse the repository at this point in the history
  • Loading branch information
mrts authored and taneltm committed Oct 31, 2022
1 parent dfa7169 commit 0105dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/TokenSigning/injectPageScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function injectPageScript(): void {
s.dataset.name = "TokenSigning";
s.dataset.by = "Web-eID extension";

if (browser.runtime.getManifest()["manifest_version"] !== 2) {
if (browser.runtime.getManifest()["manifest_version"] >= 3) {
s.src = browser.runtime.getURL("token-signing-page-script.js");
} else {
s.innerHTML = "(" + pageScript + ")();";
Expand Down

0 comments on commit 0105dff

Please sign in to comment.