]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Remove z-index override from leaflet controls on small screens
[rails.git] / app / assets / javascripts / index.js
index f4b378ff33c3e0668041b55c119d31a2a3f9d531..5f84fb0566e8d34ab601e8ee4379302fe4bb608a 100644 (file)
@@ -175,7 +175,7 @@ $(document).ready(function () {
   });
 
   var bannerExpiry = new Date();
-  expiry.setYear(expiry.getFullYear() + 1);
+  bannerExpiry.setYear(bannerExpiry.getFullYear() + 1);
 
   $('#banner .close-wrap').on('click', function(e) {
     var cookieId = e.target.id;