diff options
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/main.js b/src/static/main.js index 40e62d6..b3ed57b 100644 --- a/src/static/main.js +++ b/src/static/main.js @@ -28,10 +28,10 @@ window.onload = function() { // Wait a bit to prevent showing the loader too briefly setTimeout(function() { const xhr = new XMLHttpRequest() - xhr.open('POST', '/', true) + xhr.open('POST', '/upload', true) xhr.onload = function () { if (xhr.status === 200) { - window.location = `/${xhr.responseText}` + window.location = `/share/${xhr.responseText}` } else { showError(`Error uploading: ${xhr.status}`) } |