From 1e088199fbc01510c8ebcf76523a44ee49eb5c6a Mon Sep 17 00:00:00 2001 From: rofe Date: Wed, 10 Jan 2024 10:25:36 -0800 Subject: [PATCH] fix(safari): config export displays json in browser --- src/extension/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/options.js b/src/extension/options.js index dcb30cac6..c48504647 100644 --- a/src/extension/options.js +++ b/src/extension/options.js @@ -403,7 +403,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();