Merge pull request #49 from wagesj45/codex/fix-cache-clearing-and-reasoning-view-button-registration-bu
Fix message display script paths
This commit is contained in:
commit
2e8a505166
1 changed files with 4 additions and 4 deletions
|
@ -233,11 +233,11 @@ async function clearCacheForMessages(idsInput) {
|
||||||
const scripts = [
|
const scripts = [
|
||||||
{
|
{
|
||||||
id: "clear-cache-button",
|
id: "clear-cache-button",
|
||||||
js: [browser.runtime.getURL("resources/clearCacheButton.js")],
|
js: ["resources/clearCacheButton.js"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "reason-button",
|
id: "reason-button",
|
||||||
js: [browser.runtime.getURL("resources/reasonButton.js")],
|
js: ["resources/reasonButton.js"],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
await browser.scripting.messageDisplay.registerScripts(scripts);
|
await browser.scripting.messageDisplay.registerScripts(scripts);
|
||||||
|
@ -247,8 +247,8 @@ async function clearCacheForMessages(idsInput) {
|
||||||
} else if (browser.messageDisplayScripts) {
|
} else if (browser.messageDisplayScripts) {
|
||||||
try {
|
try {
|
||||||
const scripts = [
|
const scripts = [
|
||||||
{ js: [browser.runtime.getURL("resources/clearCacheButton.js")] },
|
{ js: ["resources/clearCacheButton.js"] },
|
||||||
{ js: [browser.runtime.getURL("resources/reasonButton.js")] },
|
{ js: ["resources/reasonButton.js"] },
|
||||||
];
|
];
|
||||||
if (browser.messageDisplayScripts.registerScripts) {
|
if (browser.messageDisplayScripts.registerScripts) {
|
||||||
await browser.messageDisplayScripts.registerScripts(scripts);
|
await browser.messageDisplayScripts.registerScripts(scripts);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue