Skip to content

Commit 54b33f1

Browse files
committed
Fixed dropbox saver url not correct
1 parent 827bd7d commit 54b33f1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

public/js/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ function closestIndex(arr, closestTo) {
790790
}
791791

792792
//button actions
793-
var url = window.location.pathname;
793+
var url = window.location.protocol + '//' + window.location.host + window.location.pathname;
794794
//share
795795
ui.toolbar.publish.attr("href", url + "/publish");
796796
ui.toolbar.slide.attr("href", url + "/slide");
@@ -817,7 +817,10 @@ ui.toolbar.export.dropbox.click(function () {
817817
'url': url + "/download",
818818
'filename': filename
819819
}
820-
]
820+
],
821+
error: function (errorMessage) {
822+
console.error(errorMessage);
823+
}
821824
};
822825
Dropbox.save(options);
823826
});

0 commit comments

Comments
 (0)