Update Backup/restore settings to/from a file
https://github.com/mozilla/multi-account-containers/pull/1533#discussion_r910173590
This commit is contained in:
parent
afbd03b253
commit
00c99722ca
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ async function backupContainers() {
|
||||||
const content = JSON.stringify(
|
const content = JSON.stringify(
|
||||||
await browser.runtime.sendMessage({
|
await browser.runtime.sendMessage({
|
||||||
method: "backupIdentitiesState"
|
method: "backupIdentitiesState"
|
||||||
})
|
}),
|
||||||
|
null,
|
||||||
|
2,
|
||||||
);
|
);
|
||||||
backupLink.href = `data:application/json;base64,${btoa(content)}`;
|
backupLink.href = `data:application/json;base64,${btoa(content)}`;
|
||||||
backupLink.download = `containers-backup-${(new Date()).toISOString()}.json`;
|
backupLink.download = `containers-backup-${(new Date()).toISOString()}.json`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue