Explorar o código

Fix: Changes WebSocket protocol to wss:// for https (#17173)

Hugo Häggmark %!s(int64=6) %!d(string=hai) anos
pai
achega
458bb3b0e3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/features/explore/state/epics.ts

+ 1 - 1
public/app/features/explore/state/epics.ts

@@ -16,7 +16,7 @@ import { SeriesData } from '@grafana/ui/src/types/data';
 import { EpicDependencies } from 'app/store/configureStore';
 
 const convertToWebSocketUrl = (url: string) => {
-  const protocol = window.location.protocol === 'https' ? 'wss://' : 'ws://';
+  const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
   let backend = `${protocol}${window.location.host}${config.appSubUrl}`;
   if (backend.endsWith('/')) {
     backend = backend.slice(0, backend.length - 1);