Web: Files: Remove hack

This commit is contained in:
Alexey Safronov 2020-10-09 21:39:34 +03:00 committed by GitHub
parent 3e4219b20c
commit 15f4b38a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,15 +28,6 @@ class PureEditor extends React.Component {
let docApiUrl = await files.getDocServiceUrl();
if (window.location.origin === "https://dotnet.onlyoffice.com:8093") {
const tempDevUrl =
"https://dotnet.onlyoffice.com/ds-vpath/web-apps/apps/api/documents/api.js";
console.log(
`Replace url to DocAPI from '${docApiUrl}' to '${tempDevUrl}'`
);
docApiUrl = tempDevUrl;
}
const script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("id", "scripDocServiceAddress");