fix compiling issues

This commit is contained in:
Kevin Jahns
2017-10-14 23:03:24 +02:00
parent 82015d5a37
commit 0e426f8928
36 changed files with 192 additions and 309 deletions

View File

@@ -1,6 +1,6 @@
/* global crypto */
export default function generateUserID () {
export function generateUserID () {
if (typeof crypto !== 'undefined' && crypto.getRandomValue != null) {
// browser
let arr = new Uint32Array(1)