]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/embed.js.erb
Enable a few more eslint checks
[rails.git] / app / assets / javascripts / embed.js.erb
index 36b23666a92f8ebe61481ba8d508d014a76b60bf..ceb488f987681871e05c87476e5a464de126c79d 100644 (file)
@@ -20,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 %>
   };