summaryrefslogtreecommitdiff
path: root/client/simple/src/js/main/results.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/simple/src/js/main/results.ts')
-rw-r--r--client/simple/src/js/main/results.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/simple/src/js/main/results.ts b/client/simple/src/js/main/results.ts
index b59032a2c..0f8692345 100644
--- a/client/simple/src/js/main/results.ts
+++ b/client/simple/src/js/main/results.ts
@@ -135,9 +135,8 @@ listen("click", "#copy_url", async function (this: HTMLElement) {
}
}
- const copiedText = this.dataset.copiedText;
- if (copiedText) {
- this.innerText = copiedText;
+ if (this.dataset.copiedText) {
+ this.innerText = this.dataset.copiedText;
}
});