Quellcode durchsuchen

Ticket #4480 - Update manifest and add service worker.

AntonLV vor 3 Jahren
Ursprung
Commit
1aac2d2313
2 geänderte Dateien mit 3 neuen und 5 gelöschten Zeilen
  1. 3 3
      modules/boonex/artificer/classes/BxArtificerTemplate.php
  2. 0 2
      sw.js.php

+ 3 - 3
modules/boonex/artificer/classes/BxArtificerTemplate.php

@@ -26,11 +26,11 @@ class BxArtificerTemplate extends BxBaseModGeneralTemplate
 
         switch($sType) {
             case 'head':
-                $this->addCss([
+                $this->addCssSystem([
                     'main.css'
                 ]);
 
-                $this->addJs([
+                $this->addJsSystem([
                     'utils.js'
                 ]);
                 $sResult .= $this->_oModule->_oTemplate->getJsCode('utils', [
@@ -45,7 +45,7 @@ class BxArtificerTemplate extends BxBaseModGeneralTemplate
                 break;
 
             case 'footer':
-                $this->addJs([
+                $this->addJsSystem([
                     'sidebar.js'
                 ]);
                 break;

+ 0 - 2
sw.js.php

@@ -59,8 +59,6 @@ if(getParam('sys_css_icons_default') != '') {
     $aAssets[] = $sHomeUrl . 'template/fonts/fa-regular-400.woff2';
 }
 
-//$aAssets[] = 'https://ci.una.io/test/cache_public/bx_templ_css_61777a77ec925fa4b36db9699d01c960.css'; // some basic styles are included here instead of main css file, these styles need to be moved there then tis cache isn't needed
-
 header("Content-Type: text/javascript");
 ?>