mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-27 02:41:53 +00:00
second bang
This commit is contained in:
committed by
Matt Hill
parent
4b07d57578
commit
382448b143
@@ -22,7 +22,7 @@ export function PatchDbServiceFactory (
|
||||
source = new WebsocketSource(`ws://localhost:${config.mocks.wsPort}/db`)
|
||||
}
|
||||
} else {
|
||||
if (supportsWebSockets) {
|
||||
if (!supportsWebSockets) {
|
||||
source = new PollSource({ ...poll }, embassyApi)
|
||||
} else {
|
||||
const protocol = window.location.protocol === 'http:' ? 'ws' : 'wss'
|
||||
|
||||
Reference in New Issue
Block a user