Skip to content

Commit

Permalink
fix: make assets url localized variable available in the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and tareq1988 committed Nov 8, 2019
1 parent f379e7f commit 7227eb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/class-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,10 @@ public function enqueue_front_scripts() {
'api' => null,
'libs' => array(),
'routeComponents' => array( 'default' => null ),
'routes' => $this->get_vue_frontend_routes()
'routes' => $this->get_vue_frontend_routes(),
'urls' => [
'assetsUrl' => DOKAN_PLUGIN_ASSEST,
]
) );

$localize_data = array_merge( $localize_script, $vue_localize_script );
Expand Down

0 comments on commit 7227eb1

Please sign in to comment.