oxen-electron-gui-wallet/src/plugins/gateway.js

15 lines
407 B
JavaScript
Raw Normal View History

2020-03-03 04:16:23 +01:00
import { Gateway } from "src/gateway/gateway";
2018-09-08 23:44:19 +02:00
/* This plugin gets called early in the life-cycle
In the future, we can detect what platform we
are on and include the correct gateway.
The gateway just gets stored into the app global
object to be called from anywhere within the
frontend
*/
2020-03-03 04:16:23 +01:00
export default ({ app, router, Vue }) => {
Vue.prototype.$gateway = new Gateway(app, router);
};