Skip to content

Commit

Permalink
Merge pull request #104 from modos189/bugfix-2.0.2
Browse files Browse the repository at this point in the history
Bugfix 2.0.2
  • Loading branch information
modos189 committed Dec 28, 2022
2 parents b34f292 + 6b1a22d commit cf5bef1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iitc-button",
"version": "2.0.1",
"version": "2.0.2",
"repository": "https://github.com/IITC-CE/IITC-Button.git",
"license": "GPLv3",
"private": true,
Expand All @@ -13,7 +13,7 @@
"@highlightjs/vue-plugin": "^1.0.2",
"core-js": "^3.6.5",
"highlight.js": "^10.7.3",
"lib-iitc-manager": "^1.4.3",
"lib-iitc-manager": "^1.4.4",
"scored-fuzzysearch": "^1.0.5",
"vue": "^2.6.11"
},
Expand Down
8 changes: 8 additions & 0 deletions src/background/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ async function bypass(tabId, url) {
* @return {Promise<void>}
*/
async function maybeInstallUserJs(tabId, url) {
const IITC_is_enabled = await browser.storage.local
.get(["IITC_is_enabled"])
.then(data => data.IITC_is_enabled);
if (IITC_is_enabled === false) {
await bypass(tabId, url);
return;
}

let code = undefined;
try {
code = await ajaxGet(url);
Expand Down
2 changes: 1 addition & 1 deletion src/popup/components/ElementPlugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<template>
<div
class="plugin item-wrapper"
v-bind:class="plugin.status || 'off'"
v-bind:class="plugin.status"
v-bind:title="pluginDescription()"
v-bind:data-category="category_name"
v-bind:data-uid="plugin.uid"
Expand Down

0 comments on commit cf5bef1

Please sign in to comment.