Trying a fix for encoding issues occuring from time to time

This commit is contained in:
Kasper Rynning-Tønnesen
2018-12-04 12:40:06 +01:00
parent 14d8ef51bb
commit cad2292269
3 changed files with 14 additions and 2 deletions

View File

@@ -46,7 +46,11 @@ var Channel = {
number_suggested = 0;
var no_socket = true;
chan = Helper.decodeChannelName(Helper.html("#chan"));
//chan = Helper.decodeChannelName(Helper.html("#chan"));
var _p = window.location.pathname;
if(_p.substring(0,1) == "/") _p = _p.substring(1);
if(_p.substring(_p.length - 1) == "/") _p = _p.substring(0, _p.length - 1);
chan = Helper.decodeChannelName(_p);
mobile_beginning = Helper.mobilecheck();
var side = Helper.mobilecheck() ? "left" : "right";