We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a49edc commit bb26413Copy full SHA for bb26413
1 file changed
pages/options.js
@@ -317,7 +317,9 @@ const OptionsPage = {
317
318
onDownloadBackupClicked() {
319
const backup = Settings.pruneOutDefaultValues(this.getSettingsFromForm());
320
- const settingsBlob = new Blob([JSON.stringify(backup, null, 2) + "\n"]);
+ // Serialize the JSON keys so they're stable across backups. See #4764.
321
+ const keys = Object.keys(backup).sort();
322
+ const settingsBlob = new Blob([JSON.stringify(backup, keys, 2) + "\n"]);
323
document.querySelector("#download-backup").href = URL.createObjectURL(settingsBlob);
324
},
325
0 commit comments