Sfoglia il codice sorgente

Compatibilité IE : update polyfill

dev
parent
commit
647bb14a11
3 ha cambiato i file con 8 aggiunte e 5 eliminazioni
  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 Vedi 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 Vedi 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 soppresso perché troppo grande
Vedi File


Loading…
Annulla
Salva