forked from MapComplete/MapComplete
Fix: set share capability to 'no' if running from console, fixes tests
This commit is contained in:
parent
96dc751c8c
commit
af7bc0f7ce
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue