We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc47955 commit 6d0818dCopy full SHA for 6d0818d
GUI/gui.js
@@ -120,8 +120,15 @@ function savedb () {
120
toc("Exporting the database");
121
var arraybuff = event.data.buffer;
122
var blob = new Blob([arraybuff]);
123
- var url = window.URL.createObjectURL(blob);
124
- window.location = url;
+ var a = document.createElement("a");
+ a.href = window.URL.createObjectURL(blob);
125
+ a.download = "sql.db";
126
+ a.onclick = function() {
127
+ setTimeout(function() {
128
+ window.URL.revokeObjectURL(a.href);
129
+ }, 1500);
130
+ };
131
+ a.click();
132
};
133
tic();
134
worker.postMessage({action:'export'});
0 commit comments