Remove loading of unnecessary admin asset on frontend

[MAILPOET-2894]
This commit is contained in:
Rostislav Wolny
2020-05-06 09:12:42 +02:00
committed by Veljko V
parent b5e458ee26
commit d615b607f6

View File

@ -50,14 +50,6 @@ class AssetsController {
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(
'mailpoet_public',
Env::$assetsUrl . '/dist/js/' . $this->renderer->getJsAsset('public.js'),