Skip to content

Commit

Permalink
Merge pull request #653 from adobe/issue-652
Browse files Browse the repository at this point in the history
fix(safari): config export displays json in browser
  • Loading branch information
rofe authored Jan 18, 2024
2 parents 6efd6f5 + 1e08819 commit 066f31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ window.addEventListener('DOMContentLoaded', () => {
// create file link on the fly
const exportLink = document.createElement('a');
exportLink.download = `helix-sidekick-backup-${Date.now()}.json`;
exportLink.href = `data:application/json;charset=utf-8,${encodeURIComponent(data)}`;
exportLink.href = `data:application/x-file-download;charset=utf-8,${encodeURIComponent(data)}`;
// exportLink.classList.add('hidden');
document.body.append(exportLink);
exportLink.click();
Expand Down

0 comments on commit 066f31e

Please sign in to comment.