diff --git a/public/js/lufi-down.js b/public/js/lufi-down.js index 216d6e2..0a8f863 100644 --- a/public/js/lufi-down.js +++ b/public/js/lufi-down.js @@ -68,7 +68,7 @@ function spawnWebsocket() { var pbd = document.getElementById('pbd'); pbd.setAttribute('class', ''); - pbd.innerHTML = 'Download'; + pbd.innerHTML = ''+i18n.download+''; ws.send('{"ended":true}'); } else { diff --git a/public/js/lufi-up.js b/public/js/lufi-up.js index fa3977f..2897253 100644 --- a/public/js/lufi-up.js +++ b/public/js/lufi-up.js @@ -26,7 +26,7 @@ function copyToClipboard(el) { el.focus(); var len = el.value.length * 2; el.setSelectionRange(0, len); - alert(hit); + alert(i18n.hit); } document.body.removeChild(textArea); @@ -60,7 +60,7 @@ function copyAllToClipboard() { textArea.style.width = ''; textArea.style.height = ''; textArea.style.background = '#FFFFFF'; - alert(hits); + alert(i18n.hits); } document.body.removeChild(textArea); @@ -140,6 +140,8 @@ function sliceAndUpload(randomkey, i, parts, j, delay, del_at_first_view, short) i: i }; data = JSON.stringify(data); + + // Verify that we have a websocket and send json if (window.ws.readyState === 3) { window.ws = spawnWebsocket(function() { window.ws.send(data+'XXMOJOXX'+JSON.stringify(encrypted)); @@ -171,26 +173,26 @@ function updateProgressBar(data) { d.innerHTML = '
' +'