update engine/client not to depend on API in standlone case
This commit is contained in:
parent
971e19f527
commit
0c72cb2412
2 changed files with 7 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue