mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 11:15:53 +03:00
Null check piwik config before using it
to avoid crashing at login
This commit is contained in:
parent
452bf0bd09
commit
d734a9ba6e
1 changed files with 2 additions and 0 deletions
|
@ -197,6 +197,8 @@ class Analytics {
|
|||
if (this.disabled) return;
|
||||
|
||||
const config = SdkConfig.get();
|
||||
if (!config.piwik) return;
|
||||
|
||||
const whitelistedHSUrls = config.piwik.whitelistedHSUrls || DEFAULTS.piwik.whitelistedHSUrls;
|
||||
const whitelistedISUrls = config.piwik.whitelistedISUrls || DEFAULTS.piwik.whitelistedISUrls;
|
||||
|
||||
|
|
Loading…
Reference in a new issue