Update Backup/restore settings to/from a file

https://github.com/mozilla/multi-account-containers/pull/1533#discussion_r910173590
This commit is contained in:
BPower0036 2023-06-28 05:22:31 +00:00 committed by GitHub
parent afbd03b253
commit 00c99722ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,9 @@ async function backupContainers() {
const content = JSON.stringify(
await browser.runtime.sendMessage({
method: "backupIdentitiesState"
})
}),
null,
2,
);
backupLink.href = `data:application/json;base64,${btoa(content)}`;
backupLink.download = `containers-backup-${(new Date()).toISOString()}.json`;