forked from MapComplete/MapComplete
UX: better feedback on osm connection state; add user agent and path
This commit is contained in:
parent
09109925bc
commit
287424d249
3 changed files with 10 additions and 1 deletions
|
@ -416,6 +416,11 @@ export default class UserRelatedState {
|
|||
typeof window === "undefined" ? "no" : window.navigator.share ? "yes" : "no",
|
||||
_iframe: Utils.isIframe ? "yes" : "no",
|
||||
})
|
||||
if(!Utils.runningFromConsole){
|
||||
amendedPrefs.data["_host"] = window.location.host
|
||||
amendedPrefs.data["_path"] = window.location.pathname
|
||||
amendedPrefs.data["_userAgent"] = navigator.userAgent
|
||||
}
|
||||
|
||||
for (const key in Constants.userJourney) {
|
||||
amendedPrefs.data["__userjourney_" + key] = Constants.userJourney[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue