Skip to content

Commit

Permalink
[fix] js fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Mar 16, 2019
1 parent 70b5f44 commit 4776b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "wsrpc-python",
"version": "2.2.0",
"version": "2.2.1",
"description": "WebSocket based JSONRPC client",
"main": "wsrpc.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion wsrpc_aiohttp/static/wsrpc.js
Expand Up @@ -50,7 +50,7 @@
window.location.host
);
// noinspection ES6ConvertVarToLetConst
var absUrl = new RegExp("^\w+://");
var absUrl = /^\w+:\/\//;

function WSRPCConstructor(URL, reconnectTimeout) {
if (!absUrl.test(URL)) URL = baseUrl + URL;
Expand Down

0 comments on commit 4776b36

Please sign in to comment.