From c07b9bf2169efc345c74e3bc0e4c1530af76002c Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Wed, 7 Jul 2021 22:13:10 +0200 Subject: [PATCH] Fix jsonview with about:blank newtab --- src/excmds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/excmds.ts b/src/excmds.ts index 0bbec299..b7acfc80 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -4267,7 +4267,7 @@ export function viewconfig(...key: string[]) { */ //#background export async function jsonview(...json: string[]) { - const tab = await tabopen("-w") + const tab = await tabopen("-w", browser.runtime.getURL("static/newtab.html")) const url = "data:application/json," + encodeURIComponent(json.join(" ")) return browser.tabs.executeScript(tab.id, { code: `window.location.href = "${url}";` }) }