@Deeptanshu-sankhwar commented on this pull request.
> @@ -15,7 +15,15 @@
data[:token] = token.token
end
data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s
- data[:asset_map] = assets("iD").to_json %>
+ data[:asset_map] = assets("iD").to_json
+
+ # Include user pr
@Deeptanshu-sankhwar commented on this pull request.
> +window.OSM = window.OSM || {};
+window.OSM.userPreferences = userPreferences;
I have now embedded a function in the `idContext` object to store and then
consume user preferences
--
Reply to this email directly or view it on Git
@Deeptanshu-sankhwar pushed 1 commit.
af76c9c15e512c81c1cbb611e62f9d5b396ada7e handle user prefs in idContext object
and remove redundant auth check for user prefs
--
View it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6199/files/762d69c5878411774aad58293a55c10c1e352
## Add User Preferences Support to iD Editor
### Summary
This PR implements server-side rendering of user preferences for the iD editor,
making them accessible in the client-side JavaScript context.
### Technical Changes
**Server-side (`app/views/site/id.html.erb`):**
- Added user preference co