diff --git a/Logic/State/UserRelatedState.ts b/Logic/State/UserRelatedState.ts index ceccfc2fd8..bd130cf1b4 100644 --- a/Logic/State/UserRelatedState.ts +++ b/Logic/State/UserRelatedState.ts @@ -259,7 +259,7 @@ export default class UserRelatedState { _theme: layout?.id, _backend: this.osmConnection.Backend(), _applicationOpened: new Date().toISOString(), - _supports_sharing: window.navigator.share ? "yes" : "no" + _supports_sharing: (typeof window === "undefined") ? "no" : (window.navigator.share ? "yes" : "no") }) for (const key in Constants.userJourney) {