Skip to content

Commit

Permalink
Merge pull request #2 from fabrizio11/master
Browse files Browse the repository at this point in the history
Add @bower alias to avoid misalignment
  • Loading branch information
lesha724 authored Nov 3, 2018
2 parents 8d9dd7e + 80c58cb commit 3f8ceef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ViewerJsAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ViewerJsAssets extends AssetBundle
/**
* @var string the directory that contains the source asset files for this asset bundle.
*/
public $sourcePath = '@vendor/bower/viewerjs/ViewerJS';
public $sourcePath = '@bower/viewerjs/ViewerJS';
/**
* @var array list of JavaScript files that this bundle contains.
*/
Expand Down
2 changes: 1 addition & 1 deletion ViewerJsDocumentViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function _getIframeUrl()
public function init()
{
ViewerJsAssets::register($this->view);
$this->_urlViewer = \Yii::$app->assetManager->getPublishedUrl('@vendor/bower/viewerjs/ViewerJS');
$this->_urlViewer = \Yii::$app->assetManager->getPublishedUrl('@bower/viewerjs/ViewerJS');
parent::init();
}

Expand Down

0 comments on commit 3f8ceef

Please sign in to comment.