Update web install for fastboot.js and zip.js updates

This commit is contained in:
Danny Lin
2021-01-23 17:53:22 -08:00
committed by Daniel Micay
parent bddb6ae5b7
commit b88a4bcb88
3 changed files with 10 additions and 8 deletions

View File

@@ -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) {

View File

@@ -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>