mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 05:46:17 +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
|
onProgress?: (progress: ExtractionProgress) => void
|
||||||
): Promise<ExtractionResult> {
|
): Promise<ExtractionResult> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const tryPassword = (index = -1) => {
|
const tryPassword = (index = 0) => {
|
||||||
const password = passwords[index] ?? "";
|
const password = passwords[index] ?? "";
|
||||||
logger.info(
|
logger.info(
|
||||||
`Trying password "${password || "(empty)"}" on ${filePath}`
|
`Trying password "${password || "(empty)"}" on ${filePath}`
|
||||||
@@ -115,7 +115,7 @@ export class SevenZip {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
tryPassword();
|
tryPassword(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user