X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..290d2a23085281e68fc3c21e9d1229f64bb84d38:/app/assets/javascripts/embed.js.erb diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index 15839a2ec..ceb488f98 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -1,6 +1,7 @@ //= require leaflet //= require leaflet.osm -//= require i18n/translations +//= require i18n +//= require i18n/embed window.onload = function () { if (navigator.languages) { @@ -19,8 +20,8 @@ window.onload = function () { } var thunderforestOptions = { -<% if defined?(THUNDERFOREST_KEY) %> - apikey: <%= THUNDERFOREST_KEY.to_json %> +<% if Settings.key?(:thunderforest_key) %> + apikey: <%= Settings.thunderforest_key.to_json %> <% end %> };