aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/genpass/core.cljs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genpass/core.cljs b/src/genpass/core.cljs
index 5ff3c0b..33096d0 100644
--- a/src/genpass/core.cljs
+++ b/src/genpass/core.cljs
@@ -15,7 +15,7 @@
(.addRange selection range))
(if (and (.-selection js/document) (-> js/document .-body .createTextRange))
(let [range (-> js/document .-body .createTextRange)]
- (.moveToElementText range)
+ (.moveToElementText range this)
(.select range))))))