Merge pull request #1856 from matrix-org/luke/fix-piwik-crash
Null check piwik config before using itpull/21833/head
commit
fba1a0c4c7
|
@ -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 New Issue