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();
|
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 () => {
|
browser.runtime.onInstalled.addListener(async () => {
|
||||||
await initializeContextMenus();
|
await initializeContextMenus();
|
||||||
await updateBadge();
|
await updateBadge();
|
||||||
|
@ -87,10 +94,3 @@ browser.contextMenus.onClicked.addListener(async (info, tab) => {
|
||||||
|
|
||||||
await contextClicked(contextMenuIds, 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' : ''}">
|
<div class="editor ${hasBeenEdited ? 'has-been-edited' : ''}">
|
||||||
<select
|
<select
|
||||||
class="select"
|
class="select"
|
||||||
|
id="matcher-type"
|
||||||
title="Matcher Type"
|
title="Matcher Type"
|
||||||
value=${matcherType}
|
value=${matcherType}
|
||||||
onChange=${this.onMatcherTypeChange}
|
onChange=${this.onMatcherTypeChange}
|
||||||
|
@ -154,6 +155,7 @@ export default class Editor extends Component<Props, State> {
|
||||||
|
|
||||||
<input
|
<input
|
||||||
class="input"
|
class="input"
|
||||||
|
id="matcher-value"
|
||||||
onInput=${this.onMatcherInput}
|
onInput=${this.onMatcherInput}
|
||||||
placeholder="Matcher Value"
|
placeholder="Matcher Value"
|
||||||
title="Matcher Value"
|
title="Matcher Value"
|
||||||
|
@ -164,6 +166,7 @@ export default class Editor extends Component<Props, State> {
|
||||||
|
|
||||||
<select
|
<select
|
||||||
class="select"
|
class="select"
|
||||||
|
id="redirect-type"
|
||||||
title="Redirect Type"
|
title="Redirect Type"
|
||||||
value=${redirectType}
|
value=${redirectType}
|
||||||
onChange=${this.onRedirectTypeChange}
|
onChange=${this.onRedirectTypeChange}
|
||||||
|
@ -173,6 +176,7 @@ export default class Editor extends Component<Props, State> {
|
||||||
|
|
||||||
<input
|
<input
|
||||||
class="input"
|
class="input"
|
||||||
|
id="redirect-value"
|
||||||
onInput=${this.onRedirectInput}
|
onInput=${this.onRedirectInput}
|
||||||
placeholder="Redirect Value"
|
placeholder="Redirect Value"
|
||||||
title="Redirect Value"
|
title="Redirect Value"
|
||||||
|
|
Loading…
Reference in New Issue