mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
adapt to new webxdc api
This commit is contained in:
+3
-3
@@ -9,14 +9,14 @@ window.webxdc = (() => {
|
||||
};
|
||||
|
||||
return {
|
||||
selfAddr: () => InternalJSApi.selfAddr(),
|
||||
selfAddr: InternalJSApi.selfAddr(),
|
||||
|
||||
selfName: () => InternalJSApi.selfName(),
|
||||
selfName: InternalJSApi.selfName(),
|
||||
|
||||
setUpdateListener: (cb) => (update_listener = cb),
|
||||
|
||||
getAllUpdates: () => {
|
||||
return JSON.parse(InternalJSApi.getStatusUpdates(0));
|
||||
return Promise.resolve(JSON.parse(InternalJSApi.getStatusUpdates(0)));
|
||||
},
|
||||
|
||||
sendUpdate: (payload, descr) => {
|
||||
|
||||
Reference in New Issue
Block a user