From 5add55ff3cda25e4fca2b769b60237c03cbca4c2 Mon Sep 17 00:00:00 2001 From: Boris Kubiak Date: Sat, 17 Feb 2018 22:09:55 +0100 Subject: [PATCH] Fix error component + add GA --- package-lock.json | 10 +++++----- package.json | 1 + src/App.vue | 7 +++++-- src/vue/Corner.vue | 22 ++++++++++++++++++++-- src/vue/Error.vue | 8 +------- src/vue/Footer.vue | 2 +- 6 files changed, 33 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 637dbb5..a047695 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8306,7 +8306,7 @@ "stringstream": "0.0.5", "tough-cookie": "2.3.3", "tunnel-agent": "0.4.3", - "uuid": "3.1.0" + "uuid": "3.2.1" } }, "require-directory": { @@ -8835,7 +8835,7 @@ "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==", "requires": { "faye-websocket": "0.10.0", - "uuid": "3.1.0" + "uuid": "3.2.1" } }, "sockjs-client": { @@ -9833,9 +9833,9 @@ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" }, "uuid": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", - "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", + "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==" }, "validate-npm-package-license": { "version": "3.0.1", diff --git a/package.json b/package.json index 188feee..24badc5 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "randombytes": "^2.0.6", "sass-loader": "^6.0.6", "url-loader": "^0.6.2", + "uuid": "^3.2.1", "vue": "^2.5.11", "vue-loader": "^13.0.5", "vue-template-compiler": "^2.4.4", diff --git a/src/App.vue b/src/App.vue index 3776bb0..b8727c0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,7 @@
- +
@@ -133,7 +133,9 @@ this.workers[w] = new Worker(); this.workers[w].onmessage = event => self.parseWorkerMessage(event.data); } catch (err) { - this.error = 'local_workers_forbidden'; + this.error = err; + this.status = 'Error'; + console.error(this.error); break; } } @@ -144,6 +146,7 @@ this.stopGen(); this.error = wallet.error; this.status = 'Error'; + console.error(this.error); return; } diff --git a/src/vue/Corner.vue b/src/vue/Corner.vue index 901d17f..a10faa4 100644 --- a/src/vue/Corner.vue +++ b/src/vue/Corner.vue @@ -1,5 +1,6 @@