mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
add support for dot, space, hyphen
This commit is contained in:
parent
9e6a586423
commit
f8a4bb9de8
2 changed files with 8 additions and 2 deletions
8
dist/build.js
vendored
8
dist/build.js
vendored
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,7 @@ export default class {
|
|||
|
||||
Emitter.emit.apply(Emitter, packet.data);
|
||||
|
||||
if (this.store) this.passToStore('SOCKET_' + packet.data[0], [...packet.data.slice(1)])
|
||||
if (this.store) this.passToStore('SOCKET_' + packet.data[0].replace(/\W/g, '_'), [...packet.data.slice(1)])
|
||||
};
|
||||
|
||||
let _this = this;
|
||||
|
|
Loading…
Add table
Reference in a new issue