mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
fix loadConfig
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
7633009ddb
commit
6a5268f09b
1 changed files with 2 additions and 2 deletions
|
@ -46,12 +46,12 @@ export function preparePlatform() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function loadConfig(): Promise<Error | void> {
|
export async function loadConfig() {
|
||||||
// XXX: We call this twice, once here and once in MatrixChat as a prop. We call it here to ensure
|
// XXX: We call this twice, once here and once in MatrixChat as a prop. We call it here to ensure
|
||||||
// granular settings are loaded correctly and to avoid duplicating the override logic for the theme.
|
// granular settings are loaded correctly and to avoid duplicating the override logic for the theme.
|
||||||
//
|
//
|
||||||
// Note: this isn't called twice for some wrappers, like the Jitsi wrapper.
|
// Note: this isn't called twice for some wrappers, like the Jitsi wrapper.
|
||||||
SdkConfig.put(PlatformPeg.get().getConfig() || {});
|
SdkConfig.put(await PlatformPeg.get().getConfig() || {});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadOlm(): Promise<void> {
|
export function loadOlm(): Promise<void> {
|
||||||
|
|
Loading…
Reference in a new issue