diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 0d0e8e85a..0983eff79 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -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) {