From e7ed4ca37da0b283790ca17b82499ab1f67d437a Mon Sep 17 00:00:00 2001 From: Matheus Evangelista Morais Date: Wed, 7 Apr 2021 13:49:21 -0300 Subject: [PATCH] PaceAsset --- src/PaceAsset.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/PaceAsset.php b/src/PaceAsset.php index 5c2b731..7e7b6df 100644 --- a/src/PaceAsset.php +++ b/src/PaceAsset.php @@ -29,9 +29,13 @@ class PaceAsset extends AssetBundle * @param \yii\web\View $view */ public function registerAssetFiles($view) - { - $this->js = [$this->path . YII_DEBUG ? 'pace.js' : 'pace.min.js']; + { + if(YII_DEBUG){ + $this->js = [$this->path.'pace.js']; + }else{ + $this->js = [$this->path.'pace.min.js']; + } parent::registerAssetFiles($view); // TODO: Change the autogenerated stub } -} \ No newline at end of file +}