Add Find-SaveData.ps1 helper and PowerShell command on loader card

This commit is contained in:
Justin Oros
2026-09-21 22:07:59 -07:00
parent fa84bb6eb1
commit d2e66a79fc
5 changed files with 53 additions and 0 deletions
+11
View File
@@ -12,6 +12,8 @@
browseBtn: $("browseBtn"),
fileInput: $("fileInput"),
copyPathBtn: $("copyPathBtn"),
copyCmdBtn: $("copyCmdBtn"),
helperCmd: $("helperCmd"),
search: $("search"),
category: $("category"),
ownedOnly: $("ownedOnly"),
@@ -360,6 +362,15 @@
}
});
els.copyCmdBtn.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(els.helperCmd.textContent.trim());
toast("Command copied. Paste it into PowerShell and press Enter.");
} catch {
toast("Couldn't copy. Select the command and copy it manually.", true);
}
});
els.browseBtn.addEventListener("click", browse);
els.fileInput.addEventListener("change", () => loadFile(els.fileInput.files[0]));