X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e206dd527ef7c6d1829f131533d722e536e4bfb5..70d61a17e54d28dda8bebb3f34faa0565cac5015:/app/assets/javascripts/social_share_button.js diff --git a/app/assets/javascripts/social_share_button.js b/app/assets/javascripts/social_share_button.js index b118c1d3b..173194521 100644 --- a/app/assets/javascripts/social_share_button.js +++ b/app/assets/javascripts/social_share_button.js @@ -1,4 +1,4 @@ -$(document).ready(function () { +$(function () { function openShareUrl(url, initialWidth = 640, initialHeight = 480) { const width = Math.max(100, Math.min(screen.width, initialWidth)); const height = Math.max(100, Math.min(screen.height, initialHeight));