From 67309750da13b52c4dd18d9d4616a00fbd320e63 Mon Sep 17 00:00:00 2001 From: MarcusNyne <69087098+MarcusNyne@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:30:38 -0400 Subject: [PATCH] Fixed javascript linting --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script.js b/script.js index 867e868eb..af67ceb1b 100644 --- a/script.js +++ b/script.js @@ -214,12 +214,12 @@ function uiElementInSight(el) { } function uiCopyElementText(el) { - var text = el.innerText + var text = el.innerText; if (text.startsWith('"')) { - text = text.substring(1, text.length-1).replaceAll('\\n', '\n') + text = text.substring(1, text.length - 1).replaceAll('\\n', '\n'); } - - navigator.clipboard.writeText(text) + + navigator.clipboard.writeText(text); el.classList.remove('animate'); setTimeout(() => {