From 382448b143d2fe229d9582ce24f69030cd6dcf3f Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Thu, 16 Sep 2021 12:24:41 -0600 Subject: [PATCH] second bang --- ui/src/app/services/patch-db/patch-db.factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/services/patch-db/patch-db.factory.ts b/ui/src/app/services/patch-db/patch-db.factory.ts index 7088dfe82..f28d1e361 100644 --- a/ui/src/app/services/patch-db/patch-db.factory.ts +++ b/ui/src/app/services/patch-db/patch-db.factory.ts @@ -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'