Browse Source

Maintenance: Mobile - Use "load" hook when resolving icons

Vladimir Sheremet 1 year ago
parent
commit
75f575f696
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/frontend/build/iconsPlugin.mjs

+ 1 - 2
app/frontend/build/iconsPlugin.mjs

@@ -22,11 +22,10 @@ export default () => ({
   name: 'zammad-plugin-svgo',
   enforce: 'pre',
   /**
-   * @param {string} code
    * @param {string} id
    * @returns {{code: string}}
    */
-  async transform(code, id) {
+  async load(id) {
     if (id.endsWith('.svg?symbol')) {
       const filepath = id.replace(/\?.*$/, '')
       const svgContent = optimizeSvg(filepath)