diff options
author | Gabriel Giovanini <gabrielg.desouza@gmail.com> | 2019-06-23 21:11:27 +0200 |
---|---|---|
committer | Gabriel Giovanini <gabrielg.desouza@gmail.com> | 2019-06-23 21:11:27 +0200 |
commit | e5f0321d7f92b497e97e61392d88111c930c0246 (patch) | |
tree | d3943496f725d560f75c8500588a0408d8d60dd2 | |
parent | 927b25e3dddde019274a4c5237b8a37d1024b419 (diff) | |
download | genpass-e5f0321d7f92b497e97e61392d88111c930c0246.tar.gz genpass-e5f0321d7f92b497e97e61392d88111c930c0246.tar.bz2 genpass-e5f0321d7f92b497e97e61392d88111c930c0246.zip |
Fixes magic code
-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 [] |