Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Commit 35916ed

Browse files
committed
fix install param null bug & build
1 parent ac17889 commit 35916ed

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/vue-websocket.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-websocket.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-websocket",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Websocket handler for Vue.js",
55
"homepage": "https://github.com/icebob/vue-websocket",
66
"main": "dist/vue-websocket.js",

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66

77
let socket;
88

9-
if (typeof connection === "object")
9+
if (connection != null && typeof connection === "object")
1010
socket = connection;
1111
else
1212
socket = IO(connection || "", opts);

0 commit comments

Comments
 (0)