]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
mobile ui: adhere debug flag when loading sencha touch
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 16:42:09 +0000 (18:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 16:42:25 +0000 (18:42 +0200)
not that this UI has _that_ much use, but mobile users might be happy
to only load 931 KB and not 3.6 MB (3.85 times as many)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/mobile/index.html.tpl

index 720d0590d7e377380ab08c222bfdb5ea82d61988..819177dcdd22f55759b820579e0b88ccd599d25b 100644 (file)
        CSRFPreventionToken: '[% token %]'
     };
     </script>
+    [%- IF debug %]
     <script type="text/javascript" src="/pve2/sencha-touch/sencha-touch-all-debug.js"></script>
+    [%- ELSE %]
+    <script type="text/javascript" src="/pve2/sencha-touch/sencha-touch-all.js"></script>
+    [% END %]
     <script type="text/javascript" src="/proxmoxlib.js?ver=[% wtversion %]"></script>
     <script type="text/javascript" src="/pve2/touch/pvemanager-mobile.js?ver=[% version %]"></script>
     <script type="text/javascript">