mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 15:16:28 +08:00
chore: remove unuse site logic
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user