mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
fix: update password index initialization in tryPassword function for correct behavior
This commit is contained in:
@@ -46,7 +46,7 @@ export class SevenZip {
|
||||
onProgress?: (progress: ExtractionProgress) => void
|
||||
): Promise<ExtractionResult> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const tryPassword = (index = -1) => {
|
||||
const tryPassword = (index = 0) => {
|
||||
const password = passwords[index] ?? "";
|
||||
logger.info(
|
||||
`Trying password "${password || "(empty)"}" on ${filePath}`
|
||||
@@ -115,7 +115,7 @@ export class SevenZip {
|
||||
});
|
||||
};
|
||||
|
||||
tryPassword();
|
||||
tryPassword(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user