Skip to content

Commit

Permalink
Hotfix for URL issue
Browse files Browse the repository at this point in the history
Pertains to #2154
  • Loading branch information
davkal committed Jan 30, 2017
1 parent 9b21183 commit f86dd12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/app/scripts/utils/web-api-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f86dd12

Please sign in to comment.