Compare commits
No commits in common. "9f414731b9327d15eac0877484c1b40386baabef" and "645e0e066a3a26f05b049277ee644960b4513e16" have entirely different histories.
9f414731b9
...
645e0e066a
|
@ -12,6 +12,13 @@ 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();
|
||||
|
@ -87,10 +94,3 @@ 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,6 +145,7 @@ 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}
|
||||
|
@ -154,6 +155,7 @@ export default class Editor extends Component<Props, State> {
|
|||
|
||||
<input
|
||||
class="input"
|
||||
id="matcher-value"
|
||||
onInput=${this.onMatcherInput}
|
||||
placeholder="Matcher Value"
|
||||
title="Matcher Value"
|
||||
|
@ -164,6 +166,7 @@ export default class Editor extends Component<Props, State> {
|
|||
|
||||
<select
|
||||
class="select"
|
||||
id="redirect-type"
|
||||
title="Redirect Type"
|
||||
value=${redirectType}
|
||||
onChange=${this.onRedirectTypeChange}
|
||||
|
@ -173,6 +176,7 @@ 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