aboutsummaryrefslogtreecommitdiff
path: root/src/cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cljs')
-rw-r--r--src/cljs/gnunet_web/core.cljs2
-rw-r--r--src/cljs/gnunet_web/filesharing.cljs6
-rw-r--r--src/cljs/gnunet_web/transport.cljs4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/cljs/gnunet_web/core.cljs b/src/cljs/gnunet_web/core.cljs
index d33bc2f..e483c81 100644
--- a/src/cljs/gnunet_web/core.cljs
+++ b/src/cljs/gnunet_web/core.cljs
@@ -39,7 +39,7 @@
(callback {:peer (vec (read-memory peer-id-pointer 32))
:state state})))
-(def monitor-callback-pointer (+++ (.addFunction js/Runtime monitor-callback)))
+(def monitor-callback-pointer (+++ (js/addFunction monitor-callback)))
(defn monitor-peers
[callback]
diff --git a/src/cljs/gnunet_web/filesharing.cljs b/src/cljs/gnunet_web/filesharing.cljs
index fb69e8f..5ea1381 100644
--- a/src/cljs/gnunet_web/filesharing.cljs
+++ b/src/cljs/gnunet_web/filesharing.cljs
@@ -71,7 +71,7 @@
(read-memory data data-size))})))
(def metadata-iterator-pointer
- (+++ (.addFunction js/Runtime metadata-iterator)))
+ (+++ (js/addFunction metadata-iterator)))
(defn parse-progress-publish
[status info-pointer]
@@ -177,7 +177,7 @@
(def fs
(js/_GNUNET_FS_start_simple
- (+++ (.addFunction js/Runtime progress-callback))))
+ (+++ (js/addFunction progress-callback))))
(defn start-search
[query anonymity]
@@ -237,7 +237,7 @@
1)))
(def publish-reader-callback-pointer
- (+++ (.addFunction js/Runtime publish-reader-callback)))
+ (+++ (js/addFunction publish-reader-callback)))
(defn new-block-options
[{:keys [expiration anonymity priority replication]}]
diff --git a/src/cljs/gnunet_web/transport.cljs b/src/cljs/gnunet_web/transport.cljs
index d64765b..a93ec41 100644
--- a/src/cljs/gnunet_web/transport.cljs
+++ b/src/cljs/gnunet_web/transport.cljs
@@ -67,7 +67,7 @@
(unregister-object cls)))
(def get-hello-callback-pointer
- (+++ (.addFunction js/Runtime get-hello-callback)))
+ (+++ (js/addFunction get-hello-callback)))
(defn get-my-peer-id
[callback]
@@ -95,7 +95,7 @@
(gcrypt/utf8ByteArrayToString
(to-array (drop 8 address))))))})))
-(def monitor-callback-pointer (+++ (.addFunction js/Runtime monitor-callback)))
+(def monitor-callback-pointer (+++ (js/addFunction monitor-callback)))
(defn monitor-peers
[callback]