We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 827bd7d commit 54b33f1Copy full SHA for 54b33f1
1 file changed
public/js/index.js
@@ -790,7 +790,7 @@ function closestIndex(arr, closestTo) {
790
}
791
792
//button actions
793
-var url = window.location.pathname;
+var url = window.location.protocol + '//' + window.location.host + window.location.pathname;
794
//share
795
ui.toolbar.publish.attr("href", url + "/publish");
796
ui.toolbar.slide.attr("href", url + "/slide");
@@ -817,7 +817,10 @@ ui.toolbar.export.dropbox.click(function () {
817
'url': url + "/download",
818
'filename': filename
819
820
- ]
+ ],
821
+ error: function (errorMessage) {
822
+ console.error(errorMessage);
823
+ }
824
};
825
Dropbox.save(options);
826
});
0 commit comments