diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/web-install.js | 4 | ||||
| -rw-r--r-- | static/web-install.html | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/static/js/web-install.js b/static/js/web-install.js index f4ee0c8d..aa80d2b1 100644 --- a/static/js/web-install.js +++ b/static/js/web-install.js @@ -87,7 +87,9 @@ function addButtonHook(id, callback) { // zip.js is loaded separately. // eslint-disable-next-line no-undef zip.configure({ - workerScriptsPath: "/js/fastboot/libs/", + workerScripts: { + inflate: ["/js/fastboot/libs/z-worker-pako.js", "pako_inflate.min.js"], + }, }); if ("usb" in navigator) { diff --git a/static/web-install.html b/static/web-install.html index 9ac73ddc..6e9481ac 100644 --- a/static/web-install.html +++ b/static/web-install.html @@ -26,12 +26,12 @@ <link rel="stylesheet" href="/grapheneos.css?29"/> <link rel="manifest" href="/manifest.webmanifest"/> <link rel="license" href="/LICENSE.txt"/> - <script defer="defer" src="/js/fastboot/libs/zip.min.js?0"></script> - <script type="module" src="/js/fastboot/common.js?0"></script> - <script type="module" src="/js/fastboot/factory.js?0"></script> - <script type="module" src="/js/fastboot/sparse.js?0"></script> - <script type="module" src="/js/fastboot/fastboot.js?0"></script> - <script type="module" src="/js/web-install.js?2"></script> + <script defer="defer" src="/js/fastboot/libs/zip-inflate.min.js?0"></script> + <script type="module" src="/js/fastboot/common.js?1"></script> + <script type="module" src="/js/fastboot/factory.js?1"></script> + <script type="module" src="/js/fastboot/sparse.js?1"></script> + <script type="module" src="/js/fastboot/fastboot.js?1"></script> + <script type="module" src="/js/web-install.js?3"></script> </head> <body> <header> |
