X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d3b2b47964ec91ef1ab1946b7258a06665caced..8878c963f3ecb6c80a4724f50389a8ded551468b:/app/assets/javascripts/social_share_button.js?ds=sidebyside 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));