Add Find-SaveData.ps1 helper and PowerShell command on loader card
This commit is contained in:
1 parent
fa84bb6eb1
commit
d2e66a79fc
5 files changed
+53
No files matched your search
@@ -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]));
|
||||
|
||||
|
||||
Reference in new issue
Block a user