debug.html: fix: cannot open files when ssl is disabled
Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: Icc948a7ba39be1d4deb5178dd5a58a7708e7dbea
This commit is contained in:
parent
e7ad60ea42
commit
f764ef97d2
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
function constructWopiUrl() {
|
||||
var wopiUrl = window.location.protocol + "//" + window.location.host + window.location.pathname + "?";
|
||||
wopiUrl = wopiUrl.replace("debug.html", "loleaflet.html");
|
||||
var wopiSrc = "https://localhost:9980/wopi/files/" + encodeURIComponent(window.location.search.substring(window.location.search.indexOf("=")+2));
|
||||
var wopiSrc = window.location.protocol + "//" + window.location.host + "/wopi/files/" + encodeURIComponent(window.location.search.substring(window.location.search.indexOf("=")+2));
|
||||
wopiUrl = wopiUrl + "WOPISrc=" + wopiSrc;
|
||||
return wopiUrl
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue