Use jsonview() for :viewcontainers

This commit is contained in:
Rummskartoffel 2021-03-31 23:11:12 +02:00
parent cbce8db9f5
commit 4a4a095f6d

View file

@ -2986,7 +2986,7 @@ export async function viewcontainers() {
// # and white space don't agree with FF's JSON viewer.
// Probably other symbols too.
const containers = await browserBg.contextualIdentities.query({}) // Can't access src/lib/containers.ts from a content script.
window.location.href = "data:application/json," + JSON.stringify(containers).replace(/#/g, "%23").replace(/ /g, "%20")
jsonview(JSON.stringify(containers))
}
/** Opens the current tab in another container.