Skip to content
Snippets Groups Projects
Commit 433b356b authored by Marcin Kolanko's avatar Marcin Kolanko
Browse files

fix: assets dir path

parent 73441a3d
No related branches found
No related tags found
1 merge request!30Bugfix/wordpress review
Pipeline #507666 passed with warnings
......@@ -35,7 +35,7 @@ class AjaxHandler implements HookablePluginDependant {
* @param string|null $assetsURL Assets URL.
*/
public function __construct( $assetsURL = null ) {
$this->assetsURL = $assetsURL ?? dirname(__FILE__, 5) . '/assets/';
$this->assetsURL = $assetsURL ?? plugins_url('/assets/', dirname(__FILE__, 3));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment