Compare commits
2 Commits
645e0e066a
...
9f414731b9
Author | SHA1 | Date |
---|---|---|
Bauke | 9f414731b9 | |
Bauke | a0a11e3647 |
|
@ -12,13 +12,6 @@ async function browserActionClicked() {
|
|||
await browser.runtime.openOptionsPage();
|
||||
}
|
||||
|
||||
if (import.meta.env.VITE_BROWSER === 'chromium') {
|
||||
browser.action.onClicked.addListener(browserActionClicked);
|
||||
} else {
|
||||
browser.browserAction.onClicked.addListener(browserActionClicked);
|
||||
void initializeContextMenus();
|
||||
}
|
||||
|
||||
browser.runtime.onInstalled.addListener(async () => {
|
||||
await initializeContextMenus();
|
||||
await updateBadge();
|
||||
|
@ -94,3 +87,10 @@ browser.contextMenus.onClicked.addListener(async (info, tab) => {
|
|||
|
||||
await contextClicked(contextMenuIds, info, tab);
|
||||
});
|
||||
|
||||
if (import.meta.env.VITE_BROWSER === 'chromium') {
|
||||
browser.action.onClicked.addListener(browserActionClicked);
|
||||
} else {
|
||||
browser.browserAction.onClicked.addListener(browserActionClicked);
|
||||
void initializeContextMenus();
|
||||
}
|
||||
|
|
|
@ -145,7 +145,6 @@ export default class Editor extends Component<Props, State> {
|
|||
<div class="editor ${hasBeenEdited ? 'has-been-edited' : ''}">
|
||||
<select
|
||||
class="select"
|
||||
id="matcher-type"
|
||||
title="Matcher Type"
|
||||
value=${matcherType}
|
||||
onChange=${this.onMatcherTypeChange}
|
||||
|
@ -155,7 +154,6 @@ export default class Editor extends Component<Props, State> {
|
|||
|
||||
<input
|
||||
class="input"
|
||||
id="matcher-value"
|
||||
onInput=${this.onMatcherInput}
|
||||
placeholder="Matcher Value"
|
||||
title="Matcher Value"
|
||||
|
@ -166,7 +164,6 @@ export default class Editor extends Component<Props, State> {
|
|||
|
||||
<select
|
||||
class="select"
|
||||
id="redirect-type"
|
||||
title="Redirect Type"
|
||||
value=${redirectType}
|
||||
onChange=${this.onRedirectTypeChange}
|
||||
|
@ -176,7 +173,6 @@ export default class Editor extends Component<Props, State> {
|
|||
|
||||
<input
|
||||
class="input"
|
||||
id="redirect-value"
|
||||
onInput=${this.onRedirectInput}
|
||||
placeholder="Redirect Value"
|
||||
title="Redirect Value"
|
||||
|
|
Loading…
Reference in New Issue