From 828154f95beff0c34148fa2953d0b19a6cedefe4 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 7 May 2014 07:28:50 -0400 Subject: [PATCH] refactor(client) HOST --- lib/client.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; /** * Функция привязываеться ко всем ссылкам и * загружает содержимое каталогов