update engine/client not to depend on API in standlone case

This commit is contained in:
Stewart Allen 2021-02-10 10:27:36 -05:00
commit 0c72cb2412
2 changed files with 7 additions and 3 deletions

View file

@ -97,6 +97,8 @@ class Engine {
slice() {
return new Promise((accept, reject) => {
KIRI.client.clear();
KIRI.client.sync([ this.widget ]);
KIRI.client.slice(this.settings, this.widget, msg => {
this.listener({slice:msg});
if (msg.error) {