We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b15ed commit 78fc2edCopy full SHA for 78fc2ed
2 files changed
src/controller.js
@@ -218,6 +218,7 @@ fc.connect = function(userId) {
218
resolve();
219
}
220
221
+ // BUG - catch plugin init error separately, otherwise a new frame is created.
222
frame
223
.fetch()
224
.then(function() {
@@ -380,7 +381,9 @@ fc.pluginApi = {
380
381
return fc.pubsub;
382
},
383
// access to the Swagger rest client
- rest: rest.client
384
+ rest: function() {
385
+ return rest.client;
386
+ }
387
};
388
389
/**
src/rest.js
@@ -17,7 +17,7 @@ rest.init = function() {
17
usePromise: true
18
}).then(function(client) {
19
// To see all available methods:
20
- // console.log(client);
+ console.log(client);
21
22
rest.client = client;
23
resolve(client);
0 commit comments