Skip to content

Commit 73af256

Browse files
Fix download DB with ajax
1 parent 02731fe commit 73af256

File tree

1 file changed

+3
-2
lines changed
  • debug-db/src/main/assets

1 file changed

+3
-2
lines changed

debug-db/src/main/assets/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ function queryFunction() {
3535

3636
function downloadDb() {
3737
if (isDatabaseSelected) {
38-
var url = window.location.href;
39-
window.open(url+"downloadDb", "_blank")
38+
$.ajax({url: "downloadDb", success: function(){
39+
window.location = 'downloadDb';
40+
}});
4041
}
4142
}
4243

0 commit comments

Comments
 (0)