Merge pull request #3539 from Rummskartoffel/viewcontainers-jsonview

Use jsonview() for :viewcontainers
This commit is contained in:
Oliver Blanthorn 2021-04-01 06:47:09 +01:00 committed by GitHub
commit 619ba91040
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.