Skip to content

Commit a76e379

Browse files
committed
removed CDN assets
1 parent ebc8551 commit a76e379

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

EmojifyJsAsset.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ class EmojifyJsAsset extends AssetBundle
1515
'css/basic/emojify.css'
1616
];
1717

18+
public $js = [
19+
'js/emojify.js'
20+
];
21+
1822

1923
public function publish($am)
2024
{
2125
parent::publish($am);
22-
23-
\Yii::$app->controller->view->registerJsFile('https://raw.githubusercontent.com/Ranks/emojify.js/master/dist/js/emojify.js',
24-
['position' => View::POS_HEAD]);
25-
26+
2627
\Yii::$app->controller->view->registerJs('emojify.setConfig({
2728
img_dir: "'.$this->baseUrl.'/images/basic",
2829
emoji_image_extension: \'png\',

0 commit comments

Comments
 (0)