Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript does not get registered #22

Open
potibm opened this issue Jun 21, 2017 · 0 comments
Open

Javascript does not get registered #22

potibm opened this issue Jun 21, 2017 · 0 comments

Comments

@potibm
Copy link

potibm commented Jun 21, 2017

Trying out the plugin the current grav version I had the problem that the javascript was missing after the first call.

Changing the code in MapShortcode.php to

$this->shortcode->addAssets('js', '//maps.googleapis.com/maps/api/js'.$apikeystring);
$this->shortcode->addAssets('js', 'plugin://google-maps/js/google-maps.js');

helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant