Commit 3248e123 authored by Vladimir Baranov's avatar Vladimir Baranov

Fix default url construction

parent bd54c153
......@@ -78,6 +78,12 @@ angular.module(
window.location.href = window.location.href.split('?')[0];
}
// add proto definition if not set
if (backendurl.indexOf("http") != 0){
var proto = window.location.href.split("/")[0];
backendurl = proto + backendurl;
}
return {url: backendurl};
})())
.factory('IsOnline', function ($window, $document, $rootScope) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment