From 6636cc9e3cda2753a7db1cc697ea522fb359e31a Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 31 May 2014 21:30:40 +0100 Subject: [PATCH] Let plugins use rpcCall() --- client/src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app.js b/client/src/app.js index 748a28b..e4b6523 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -120,6 +120,9 @@ _kiwi.global = { // Event emitter to let plugins interface with parts of kiwi _kiwi.global.events = new PluginInterface(); + // Let plugins interface with the RPC calls + _kiwi.globals.rpcCall = _kiwi.gateway.rpcCall; + // Now everything has started up, load the plugin manager for third party plugins _kiwi.global.plugins = new _kiwi.model.PluginManager(); @@ -350,4 +353,4 @@ if (typeof global !== 'undefined') { } else { // Not within a closure so set a var in the current scope var kiwi = _kiwi.global; -} \ No newline at end of file +} -- 2.25.1