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

Commit

Permalink
fix install param null bug & build
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Jan 5, 2017
1 parent ac17889 commit 35916ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/vue-websocket.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-websocket.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-websocket",
"version": "0.2.1",
"version": "0.2.2",
"description": "Websocket handler for Vue.js",
"homepage": "https://github.com/icebob/vue-websocket",
"main": "dist/vue-websocket.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {

let socket;

if (typeof connection === "object")
if (connection != null && typeof connection === "object")
socket = connection;
else
socket = IO(connection || "", opts);
Expand Down

0 comments on commit 35916ed

Please sign in to comment.