added server-wide ARL

gets enabled only if --serverwide-arl is in the server arguments
This commit is contained in:
uh_wot 2020-05-05 10:27:48 +02:00
parent 7407a28f67
commit b40b56ad0d
1 changed files with 7 additions and 0 deletions

View File

@ -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()