mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat: modify prefixUrl in params (#1335)
This commit is contained in:
@@ -15,6 +15,9 @@ if (typeof window === 'undefined') {
|
||||
} else {
|
||||
console.warn('serverAPI is not a valid URL', config.serverAPI);
|
||||
}
|
||||
} else {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
params.get('prefixUrl') && (prefixUrl = params.get('prefixUrl') as string);
|
||||
}
|
||||
|
||||
const bareAuth = createBareClient(prefixUrl);
|
||||
|
||||
Reference in New Issue
Block a user