mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Fix for URLs in contrast mode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user