Working on mobile and desktop

This commit is contained in:
Kasper Rynning-Tønnesen
2019-01-20 13:01:58 +01:00
parent dd9a58f810
commit ab6f1648e6
3 changed files with 19 additions and 2 deletions

View File

@@ -505,7 +505,11 @@ function add_function(arr, coll, guid, offline, socket) {
});
}
} else {
socket.emit("auth_required");
if((arr.hasOwnProperty("offsiteAdd") && !arr.offsiteAdd) || !arr.hasOwnProperty("offsiteAdd")) {
socket.emit("auth_required");
} else {
socket.emit("toast", "listhaspass");
}
}
});
});