@@ -2,11 +2,11 @@ import { FirmwareOption } from '../constants'
2
2
import { defaultFirmwareOptions } from '../constants'
3
3
import { DeviceService } from './DeviceService' ;
4
4
// const { Octokit } = require('@octokit/rest');
5
- import { unzipit } from 'unzipit' ;
5
+ import { unzip } from 'unzipit' ;
6
6
7
7
export class FirmwareService {
8
8
private firmwareString : string | null = null ;
9
- private firmwareBlob : Blob | null = null ;
9
+ // private firmwareBlob: Blob | null = null;
10
10
private selectedFirmwareId : string = 'Auto' ;
11
11
// Should make firmwareOptions a private variable and use getters to access it.
12
12
// This way we can add logic to the getters if we need to in the future. Default to empty record.
@@ -39,7 +39,7 @@ export class FirmwareService {
39
39
chunks . push ( value ) ;
40
40
}
41
41
const allChunks = new Uint8Array ( chunks . flatMap ( chunk => [ ...chunk ] ) ) ;
42
- const { entries } = await unzipit . unzip ( allChunks ) ;
42
+ const { entries } = await unzip ( allChunks ) ;
43
43
44
44
const unzippedData : { [ filename : string ] : Uint8Array } = { } ;
45
45
for ( const entry of Object . values ( entries ) as { name : string ; arrayBuffer : ( ) => Promise < Uint8Array > } [ ] ) {
@@ -135,7 +135,7 @@ export class FirmwareService {
135
135
if ( id in this . firmwareOptions ) {
136
136
this . selectedFirmwareId = id ;
137
137
this . firmwareString = null ;
138
- this . firmwareBlob = null ;
138
+ // this.firmwareBlob = null;
139
139
localStorage . removeItem ( 'cachedFirmware' ) ;
140
140
localStorage . setItem ( 'selectedFirmwareId' , id ) ;
141
141
}
0 commit comments