Skip to content

Commit

Permalink
For some reason webextension-polyfill stopped connecting automaticall…
Browse files Browse the repository at this point in the history
…y. So I manually added the import
  • Loading branch information
modos189 committed Feb 3, 2024
1 parent 1a393e8 commit 1d74fb3
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/background/background.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3
import { Manager } from "lib-iitc-manager";
import browser from "webextension-polyfill";
import { _ } from "@/i18n";
import { inject_plugin } from "./injector";
import {
Expand Down
1 change: 1 addition & 0 deletions src/background/injector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3

import browser from "webextension-polyfill";
import { check_matching } from "lib-iitc-manager";

export async function inject_plugin(plugin) {
Expand Down
1 change: 1 addition & 0 deletions src/background/intel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3
import browser from "webextension-polyfill";
import { getTabsToInject } from "./injector";

let lastIITCTab = null;
Expand Down
1 change: 1 addition & 0 deletions src/background/requests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3

import browser from "webextension-polyfill";
import { parseMeta, ajaxGet, getUniqId } from "lib-iitc-manager";

const IS_CHROME = !!global.chrome.app;
Expand Down
1 change: 1 addition & 0 deletions src/content-scripts/bridge.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3

import browser from "webextension-polyfill";
import { inject } from "@/content-scripts/utils";
import { strToBase64 } from "@/strToBase64";

Expand Down
2 changes: 2 additions & 0 deletions src/content-scripts/loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3

import browser from "webextension-polyfill";
import { GM } from "./gm-api";
import { inject, IITCButtonInitJS } from "./utils";
import { bridgeAction } from "@/content-scripts/bridge";
Expand Down
1 change: 1 addition & 0 deletions src/content-scripts/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3

import browser from "webextension-polyfill";
import { getUID } from "lib-iitc-manager";
import { strToBase64 } from "@/strToBase64";

Expand Down
1 change: 1 addition & 0 deletions src/i18n.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3
import browser from "webextension-polyfill";

export function _(msg, arg) {
return browser.i18n.getMessage(msg, arg);
Expand Down
1 change: 1 addition & 0 deletions src/jsview/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { _ } from "@/i18n";
import { getUID, humanize_match } from "lib-iitc-manager";
const iitc_core_uid =
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/ElementPlugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { mixin } from "./mixins.js";
const saveJS = (function () {
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/InputCustomServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { mixin } from "./mixins.js";
const checkStatusCustomServer = (host) =>
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/SectionOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import Hr from "./Hr.vue";
import Header from "./Header";
import UpdateCheckIntervalSelector from "./UpdateCheckIntervalSelector";
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/Title.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { mixin } from "./mixins.js";
import ProgressBar from "./ProgressBar";
import ToggleIITC from "./ToggleIITC";
Expand Down
2 changes: 2 additions & 0 deletions src/popup/components/ToggleIITC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
</template>

<script>
import browser from "webextension-polyfill";
export default {
name: "ToggleIITC",
data() {
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/UpdateCheckIntervalSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { mixin } from "./mixins.js";
export default {
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/mixins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3
import browser from "webextension-polyfill";
import { _ } from "@/i18n";

export const mixin = {
Expand Down
3 changes: 3 additions & 0 deletions src/popup/data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//@license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3

import browser from "webextension-polyfill";

export async function init(self) {
const appData = self.$data;
const data = await browser.storage.local.get([
Expand Down
2 changes: 2 additions & 0 deletions src/popup/search.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import browser from "webextension-polyfill";

import { fuzzysearch } from "scored-fuzzysearch";

const score = (query, text) => {
Expand Down
1 change: 1 addition & 0 deletions src/settings/add/BlockDrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { parseMeta } from "lib-iitc-manager";
import { _ } from "@/i18n";
Expand Down
1 change: 1 addition & 0 deletions src/settings/add/BlockURL.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { ajaxGet, parseMeta } from "lib-iitc-manager";
import { _ } from "@/i18n";
Expand Down
1 change: 1 addition & 0 deletions src/settings/backup/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { _ } from "@/i18n";
import { getBackupDataFromZip, createBackupZip } from "./utils";
Expand Down
1 change: 1 addition & 0 deletions src/settings/debug/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
</template>

<script>
import browser from "webextension-polyfill";
import { _ } from "@/i18n";
export default {
Expand Down

0 comments on commit 1d74fb3

Please sign in to comment.