File tree Expand file tree Collapse file tree 5 files changed +177
-156
lines changed
Expand file tree Collapse file tree 5 files changed +177
-156
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export const storageGetAll = async (storageType: ChromeStorageType): Promise<{ [
6969 void handleFatalErr ( 'storage_undefined' , new Error ( 'storage is undefined' ) ) ;
7070 } else {
7171 const storage = chrome . storage [ storageType ] ;
72- storage . get ( resolve ) ;
72+ void storage . get ( resolve ) ;
7373 }
7474 } ) ;
7575} ;
Original file line number Diff line number Diff line change @@ -526,6 +526,7 @@ export class KeyUtil {
526526 if ( decodedChunks . length === 0 ) return false ;
527527
528528 const rawData = decodedChunks . join ( '' ) ;
529+ // eslint-disable-next-line @typescript-eslint/no-misused-spread
529530 const dataBytes = new Uint8Array ( [ ...rawData ] . map ( c => c . charCodeAt ( 0 ) ) ) ;
530531
531532 return KeyUtil . crc24 ( dataBytes ) === providedCRC ;
Original file line number Diff line number Diff line change @@ -94,8 +94,10 @@ export class Settings {
9494 if ( ! filter ) {
9595 throw new Error ( 'Filter is empty for account_email"' + acctEmail + '"' ) ;
9696 }
97+
9798 await new Promise < void > ( ( resolve , reject ) => {
98- chrome . storage . local . get ( async storage => {
99+ // eslint-disable-next-line no-null/no-null
100+ chrome . storage . local . get ( null , async storage => {
99101 try {
100102 for ( const storageIndex of Object . keys ( storage ) ) {
101103 if ( storageIndex . startsWith ( filter ) ) {
You can’t perform that action at this time.
0 commit comments