Browse Source

Compatibilité IE : update polyfill

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
647bb14a11
3 changed files with 8 additions and 5 deletions
  1. +1
    -1
      common/assets/CommonAsset.php
  2. +7
    -1
      common/components/MyAssetBundle.php
  3. +0
    -3
      common/web/js/promise-polyfill/polyfill.min.js

+ 1
- 1
common/assets/CommonAsset.php View File

@@ -66,7 +66,7 @@ class CommonAsset extends \common\components\MyAssetBundle
// js
$this->addAsset('js','js/jquery-ui-1.11.4.custom/jquery-ui.min.js');
$this->addAsset('js','js/promise-polyfill/polyfill.min.js');
$this->addAsset('js','https://polyfill.io/v3/polyfill.js?features=default%2CArray.prototype.find%2CIntl');
$this->addAsset('js','js/promise-polyfill/promise.min.js');
$this->addAsset('js','js/axios/axios.min.js');
$this->addAsset('js','js/vuejs/vue.js');

+ 7
- 1
common/components/MyAssetBundle.php View File

@@ -47,6 +47,12 @@ class MyAssetBundle extends AssetBundle
public function addAsset($type, $path)
{
$this->$type[] = $path.'?v='.filemtime(Yii::getAlias($this->sourcePath.'/'.$path)) ;
if(substr($path, 0, 4) == 'http') {
$this->$type[] = $path ;
}
else {
$this->$type[] = $path.'?v='.filemtime(Yii::getAlias($this->sourcePath.'/'.$path)) ;
}
}
}

+ 0
- 3
common/web/js/promise-polyfill/polyfill.min.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save