From e5d79dc60f9192755bb69c00602ef05b70e0893c Mon Sep 17 00:00:00 2001 From: d07riv Date: Sat, 3 Aug 2019 20:40:13 +0300 Subject: [PATCH] more details in error reports --- package-lock.json | 2 +- package.json | 2 +- src/App.js | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c904c8e..b4646b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "diabloweb", - "version": "1.0.13", + "version": "1.0.14", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c7f0d5c..f7646b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "diabloweb", - "version": "1.0.13", + "version": "1.0.14", "private": true, "dependencies": { "@babel/core": "7.4.3", diff --git a/src/App.js b/src/App.js index 7f1820d..b6fbfda 100644 --- a/src/App.js +++ b/src/App.js @@ -25,6 +25,13 @@ DiabloWeb ${process.env.VERSION} (${retail ? 'Retail' : 'Shareware'}) **Error message:** ${message.split("\n").map(line => " " + line).join("\n")} + +**User agent:** + + ${navigator.userAgent} + +**Save file:** +[Please attach the save file, if applicable. The error box should have a link to download the current save you were playing; alternatively, you can open dev console on the game page (F12) and type in ${"`DownloadSaves()`"}] `); return url.toString(); }