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 +}