diff options
-rw-r--r-- | src/genpass/core.cljs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/genpass/core.cljs b/src/genpass/core.cljs index b207cb5..5ff3c0b 100644 --- a/src/genpass/core.cljs +++ b/src/genpass/core.cljs @@ -11,12 +11,12 @@ (let [selection (.getSelection js/window) range (.createRange js/document)] (.selectNodeContents range this) - (.-romoveAllRange js/document) + (.removeAllRanges selection) (.addRange selection range)) (if (and (.-selection js/document) (-> js/document .-body .createTextRange)) - (let [range (-> js/document .-body .creatTextRange)] + (let [range (-> js/document .-body .createTextRange)] (.moveToElementText range) - (.select range this)))))) + (.select range)))))) (defn home-page [] |