diff options
author | Wu Cheng-Han | 2015-12-15 23:16:31 -0600 |
---|---|---|
committer | Wu Cheng-Han | 2015-12-15 23:16:31 -0600 |
commit | 54b33f181f70786a2df624061e7a2ffb93a3eb73 (patch) | |
tree | ce46b03820ec8cd4dd7b2418375c7ead895271cb | |
parent | 827bd7dffb91728f2480b128737f53a4a853c3ec (diff) |
Fixed dropbox saver url not correct
-rw-r--r-- | public/js/index.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js index 276c0c8b..4706d210 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -790,7 +790,7 @@ function closestIndex(arr, closestTo) { } //button actions -var url = window.location.pathname; +var url = window.location.protocol + '//' + window.location.host + window.location.pathname; //share ui.toolbar.publish.attr("href", url + "/publish"); ui.toolbar.slide.attr("href", url + "/slide"); @@ -817,7 +817,10 @@ ui.toolbar.export.dropbox.click(function () { 'url': url + "/download", 'filename': filename } - ] + ], + error: function (errorMessage) { + console.error(errorMessage); + } }; Dropbox.save(options); }); |