Skip to content

Commit

Permalink
PaceAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
thtmorais authored Apr 7, 2021
1 parent 28f8330 commit e7ed4ca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/PaceAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit e7ed4ca

Please sign in to comment.