diff options
| author | Danny Lin <danny@kdrag0n.dev> | 2021-01-23 17:53:22 -0800 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-23 21:10:18 -0500 |
| commit | b88a4bcb88a726fa17d1beeea552685039454f2b (patch) | |
| tree | 0f3d2046b333e29761c844b4a47ee7e1e021b770 | |
| parent | bddb6ae5b7540ba11119a9a1a2f0ee4e966ca0c4 (diff) | |
Update web install for fastboot.js and zip.js updates
| -rw-r--r-- | static/js/web-install.js | 4 | ||||
| -rw-r--r-- | static/web-install.html | 12 | ||||
| -rwxr-xr-x | validate_static | 2 |
3 files changed, 10 insertions, 8 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> diff --git a/validate_static b/validate_static index a14ac101..cbf21c47 100755 --- a/validate_static +++ b/validate_static @@ -14,6 +14,6 @@ for file in static_tmp/**/*.@(json|webmanifest); do done xmllint --noout static_tmp/**/*.@(html|svg|xml) -eslint static_tmp/**/!(zip.min|z-worker).js +eslint static_tmp/**/!(zip-inflate.min|z-worker-pako|pako_inflate.min).js stylelint static_tmp/**/*.css validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg) |
