refactor(client) HOST

This commit is contained in:
coderaiser 2014-05-07 07:28:50 -04:00
parent 625b9fd608
commit 828154f95b

View file

@ -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;
/**
* Функция привязываеться ко всем ссылкам и
* загружает содержимое каталогов