X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5047ec403db94b0d371a9a10b56801bc0a3fcf0a..248b5fa1aefb8c7b4ece818ad3720992f2487fe2:/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));