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