Fix for URLs in contrast mode

This commit is contained in:
jpellizzari
2017-01-27 08:13:17 -08:00
parent 58d4306d0d
commit 5e461cd3ba

View File

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