chore: remove unuse site logic

This commit is contained in:
lawvs
2022-09-21 12:16:31 +08:00
parent 10889052bd
commit b97e17643c
+1 -3
View File
@@ -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 = {