From 45f2792d5efd8692b988ec2a867e31a3dbb37cc8 Mon Sep 17 00:00:00 2001 From: erosman Date: Mon, 18 Sep 2023 08:32:17 +0330 Subject: [PATCH] Add files via upload --- src/content/action.js | 3 +-- src/content/proxy.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/content/action.js b/src/content/action.js index 034c335..3a26f84 100644 --- a/src/content/action.js +++ b/src/content/action.js @@ -3,9 +3,8 @@ import {Location} from './location.js'; export class Action { - // --- set action/browserAction static set(pref) { - + // --- set action/browserAction let title = '', text = ''; let color = '#fff'; switch (pref.mode) { diff --git a/src/content/proxy.js b/src/content/proxy.js index 0b6ec95..4beb6be 100644 --- a/src/content/proxy.js +++ b/src/content/proxy.js @@ -36,10 +36,10 @@ export class Proxy { // https://bugs.chromium.org/p/chromium/issues/detail?id=29683 // https://developer.chrome.com/docs/extensions/mv3/manifest/icons/ // SVG is not supported by Chrome - // Firefox: If each one of imageData and path is one of undefined, null or empty object, // the global icon will be reset to the manifest icon // Chrome -> Error: Either the path or imageData property must be specified. + // check if proxy.settings is controlled_by_this_extension const ext = App.firefox ? 'svg' : 'png'; const path = conf.levelOfControl === 'controlled_by_this_extension' ? `/image/icon.${ext}` : `/image/icon-off.${ext}`;