add tris and url parsing

This commit is contained in:
ntr
2019-09-15 12:10:13 +10:00
parent a98f1d04af
commit a22521b119
3 changed files with 34 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@
"preact-compat": "^3.19.0",
"preact-context": "^1.1.3",
"preact-redux": "^2.1.0",
"query-string": "^6.8.3",
"react-string-replace": "^0.4.4",
"react-stripe-elements": "^3.0.0",
"redux": "^4.0.0"
+4
View File
@@ -1,3 +1,5 @@
const querystring = require('query-string');
const toast = require('izitoast');
const cbor = require('borc');
@@ -310,6 +312,8 @@ function createSocket(events) {
ws = null;
}
console.log(querystring.parse(location.hash));
ws = new WebSocket(SOCKET_URL);
ws.binaryType = 'arraybuffer';