aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-23 21:11:27 +0200
committerGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-23 21:11:27 +0200
commite5f0321d7f92b497e97e61392d88111c930c0246 (patch)
treed3943496f725d560f75c8500588a0408d8d60dd2
parent927b25e3dddde019274a4c5237b8a37d1024b419 (diff)
downloadgenpass-e5f0321d7f92b497e97e61392d88111c930c0246.tar.gz
genpass-e5f0321d7f92b497e97e61392d88111c930c0246.tar.bz2
genpass-e5f0321d7f92b497e97e61392d88111c930c0246.zip
Fixes magic code
-rw-r--r--src/genpass/core.cljs6
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 []