diff --git a/lib/client.js b/lib/client.js index 53fb1064..e7f277e3 100644 --- a/lib/client.js +++ b/lib/client.js @@ -22,11 +22,8 @@ var Util, DOM, CloudFunc; this.LIBDIRCLIENT = '/lib/client/'; this.MIN_ONE_PANEL_WIDTH = 1155; this.OLD_BROWSER = false; - this.HOST = (function() { - var location = document.location; - return location.protocol + '//' + location.host; - })(); - + this.HOST = location.origin || + location.protocol + '//' + location.host; /** * Функция привязываеться ко всем ссылкам и * загружает содержимое каталогов