From b97e17643cf1e08a4c06f8d89f5652a489789a28 Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Wed, 21 Sep 2022 12:16:31 +0800 Subject: [PATCH] chore: remove unuse site logic --- libs/datasource/jwt/src/types/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/datasource/jwt/src/types/index.ts b/libs/datasource/jwt/src/types/index.ts index 7e54afc6bf..ffbe912045 100644 --- a/libs/datasource/jwt/src/types/index.ts +++ b/libs/datasource/jwt/src/types/index.ts @@ -16,9 +16,7 @@ function getLocation() { function getCollaborationPoint() { const { protocol, host } = getLocation(); const ws = protocol.startsWith('https') ? 'wss' : 'ws'; - const isOnline = host.endsWith('affine.pro'); - const site = isOnline ? host : 'localhost:3000'; - return `${ws}://${site}/collaboration/`; + return `${ws}://${host}/collaboration/`; } export const BucketBackend = {