Skip to content

Commit

Permalink
Attempt to make Leaflet loading more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Aug 9, 2019
1 parent 68e23ee commit da237eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/leaflet/ext.maps.leaflet.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
window.jQuery( document ).ready( function() {
( new maps.services( window.jQuery( document ) ) ).leaflet();

mediaWiki.loader.using( [ 'ext.maps.leaflet' ] ).done( function () {
( new maps.services( jQuery( document ) ) ).leaflet();
} );

0 comments on commit da237eb

Please sign in to comment.