mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +08:00
chore: remove unuse site logic
This commit is contained in:
@@ -16,9 +16,7 @@ function getLocation() {
|
|||||||
function getCollaborationPoint() {
|
function getCollaborationPoint() {
|
||||||
const { protocol, host } = getLocation();
|
const { protocol, host } = getLocation();
|
||||||
const ws = protocol.startsWith('https') ? 'wss' : 'ws';
|
const ws = protocol.startsWith('https') ? 'wss' : 'ws';
|
||||||
const isOnline = host.endsWith('affine.pro');
|
return `${ws}://${host}/collaboration/`;
|
||||||
const site = isOnline ? host : 'localhost:3000';
|
|
||||||
return `${ws}://${site}/collaboration/`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const BucketBackend = {
|
export const BucketBackend = {
|
||||||
|
|||||||
Reference in New Issue
Block a user