Fixed error with login, and size of password field

This commit is contained in:
Kasper Rynning-Tønnesen
2015-07-06 19:31:36 +02:00
parent a48c6160ab
commit 2fce7db1e8
4 changed files with 14 additions and 14 deletions

View File

@@ -91,6 +91,15 @@ $(document).ready(function()
Notification.requestPermission();
}
if(localStorage[chan.toLowerCase()])
{
//localStorage.removeItem(chan.toLowerCase());
if(localStorage[chan.toLowerCase()].length != 64)
localStorage.removeItem(chan.toLowerCase());
else
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
}
if(window.mobilecheck()){
document.getElementById("search").blur();
Youtube.readyLooks();
@@ -98,15 +107,6 @@ $(document).ready(function()
Youtube.loadPlayer();
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
if(localStorage[chan.toLowerCase()])
{
//localStorage.removeItem(chan.toLowerCase());
if(localStorage[chan.toLowerCase()].length != 64)
localStorage.removeItem(chan.toLowerCase());
else
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
}
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
$(".main").height(window.innerHeight-64);