diff --git a/public/js/app.js b/public/js/app.js index 64959a9..78c225c 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -73,6 +73,13 @@ socket.on('logged_out', function () { $('#settings_picture').attr('src', `https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg`) }) +socket.on('init_serverwideARL', function(arl){ + if (localStorage.getItem('arl') === null) { + socket.emit('login', arl) + $('#login_input_arl').val(arl) + } +}) + /* ===== App initialization ===== */ function startApp() { Downloads.init()