Skip to content

Commit

Permalink
Apply suggestion to fix missing js assets
Browse files Browse the repository at this point in the history
  • Loading branch information
thgh committed Sep 11, 2017
1 parent 9fa4a24 commit 06ff7cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shortcodes/MapShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function init()
$this->shortcode->getHandlers()->add('google-maps', function(ShortcodeInterface $sc) use ($apikeystring) {

//add assets
$this->grav['assets']->addJs('//maps.googleapis.com/maps/api/js'.$apikeystring);
$this->grav['assets']->addJs('plugin://google-maps/js/google-maps.js');
$this->shortcode->addAssets('js', '//maps.googleapis.com/maps/api/js' . $apikeystring);
$this->shortcode->addAssets('js', 'plugin://google-maps/js/google-maps.js');
$hash = $this->shortcode->getId($sc);
$infowindow = $sc->getContent();

Expand Down

0 comments on commit 06ff7cb

Please sign in to comment.