Hotfix for URL issue

Pertains to #2154
This commit is contained in:
David Kaltschmidt
2017-01-30 13:05:28 +01:00
parent 9b21183a38
commit f86dd128e0

View File

@@ -63,7 +63,10 @@ export function basePathSlash(urlPath) {
let apiPath;
let websocketUrl;
const isIframe = window.location !== window.parent.location;
const isStandalone = window.location.pathname === '/' || /\/(.+).html/.test(window.location.pathname);
const isStandalone = window.location.pathname === '/'
|| window.location.pathname === '/demo/'
|| window.location.pathname === '/scoped/'
|| /\/(.+).html/.test(window.location.pathname);
const wsProto = location.protocol === 'https:' ? 'wss' : 'ws';
if (isIframe || isStandalone) {