Skip to content

Commit

Permalink
Update Backup/restore settings to/from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nomes77 committed Jun 28, 2023
1 parent afbd03b commit 00c9972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit 00c9972

Please sign in to comment.