X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e206dd527ef7c6d1829f131533d722e536e4bfb5..8878c963f3ecb6c80a4724f50389a8ded551468b:/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));