mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
fix: small code quality and mismatch.
This commit is contained in:
@@ -17,9 +17,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
*/
|
||||
pasteBtn.addEventListener("click", async () => {
|
||||
try {
|
||||
const text = await navigator.clipboard.readText();
|
||||
|
||||
urlInput.value = text;
|
||||
urlInput.value = await navigator.clipboard.readText();
|
||||
|
||||
// Notify frameworks / listeners bound to input changes
|
||||
urlInput.dispatchEvent(new Event("input", { bubbles: true }));
|
||||
|
||||
@@ -271,6 +271,6 @@ async function init() {
|
||||
|
||||
})
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
init();
|
||||
Reference in New Issue
Block a user