From b40b56ad0dafa9f80ca73ef993e8ed58d230f490 Mon Sep 17 00:00:00 2001 From: uh_wot <3631986-uh_wot@users.noreply.gitlab.com> Date: Tue, 5 May 2020 10:27:48 +0200 Subject: [PATCH] added server-wide ARL gets enabled only if --serverwide-arl is in the server arguments --- public/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) 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()