Use a function to retrieve plgin URL instead of a broken hack
This commit is contained in:
parent
b8d13d524e
commit
be115b6dd6
|
@ -726,7 +726,7 @@ function wpgpxmaps_handle_shortcodes( $attr, $content = '' ) {
|
||||||
</div>
|
</div>
|
||||||
' . esc_html( $error ) . '
|
' . esc_html( $error ) . '
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import { WPGPXMaps } from "'. "../wp-content/plugins/wp-gpx-maps/assets/dist/WP-GPX-Maps.es.js" . '";
|
import { WPGPXMaps } from "' . plugins_url( 'assets/dist/WP-GPX-Maps.es.js', __FILE__ ) . '";
|
||||||
|
|
||||||
window.addEventListener("load", function() {
|
window.addEventListener("load", function() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue