Remove loading of unnecessary admin asset on frontend
[MAILPOET-2894]
This commit is contained in:
committed by
Veljko V
parent
b5e458ee26
commit
d615b607f6
@ -50,14 +50,6 @@ class AssetsController {
|
|||||||
Env::$assetsUrl . '/dist/css/' . $this->renderer->getCssAsset('mailpoet-public.css')
|
Env::$assetsUrl . '/dist/css/' . $this->renderer->getCssAsset('mailpoet-public.css')
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->wp->wpEnqueueScript(
|
|
||||||
'mailpoet_vendor',
|
|
||||||
Env::$assetsUrl . '/dist/js/' . $this->renderer->getJsAsset('vendor.js'),
|
|
||||||
[],
|
|
||||||
Env::$version,
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->wp->wpEnqueueScript(
|
$this->wp->wpEnqueueScript(
|
||||||
'mailpoet_public',
|
'mailpoet_public',
|
||||||
Env::$assetsUrl . '/dist/js/' . $this->renderer->getJsAsset('public.js'),
|
Env::$assetsUrl . '/dist/js/' . $this->renderer->getJsAsset('public.js'),
|
||||||
|
Reference in New Issue
Block a user