Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Sep 18, 2023
1 parent 285e841 commit 45f2792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/content/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/content/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 45f2792

Please sign in to comment.