Commit 068720a1 authored by Alexey Golubev's avatar Alexey Golubev Committed by GitHub

Fixed customization logo error

parent b5b57090
......@@ -124,8 +124,12 @@ var sUploadServiceLocalUrlOld = "../../../../uploadold";
var nMaxRequestLength = 5242880;//5mb <requestLimits maxAllowedContentLength="30000000" /> default 30mb
function getBaseUrl() {
var index_html = window["location"]["href"];
return index_html.substring(0, index_html.lastIndexOf("/") + 1);
var indexHtml = window["location"]["href"];
var questInd = indexHtml.indexOf("?");
if (questInd > 0) {
indexHtml = indexHtml.substring(0, questInd);
}
return indexHtml.substring(0, indexHtml.lastIndexOf("/") + 1);
}
function getEncodingParams() {
......
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