From 81ce2865b86ae431fbd34e7c8fddf3fb46e28bef Mon Sep 17 00:00:00 2001 From: jmia Date: Wed, 21 Oct 2020 18:36:08 -0400 Subject: [PATCH] change global variable name --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 1ae5dcc..852ab2e 100644 --- a/src/index.js +++ b/src/index.js @@ -28,9 +28,9 @@ export default class VueSocketIO { */ install(app){ - app.config.globalProperties.$http = this.io; - app.config.globalProperties.$vueSocketIo = this; - app.mixin(Mixin); + app.config.globalProperties.$socket = this.io; + app.config.globalProperties.$vueSocketIo = this; + app.mixin(Mixin); Logger.info('Vue-Socket.io plugin enabled');