more details in error reports

This commit is contained in:
d07riv
2019-08-03 20:40:13 +03:00
parent dce65c725e
commit e5d79dc60f
3 changed files with 9 additions and 2 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "diabloweb", "name": "diabloweb",
"version": "1.0.13", "version": "1.0.14",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "diabloweb", "name": "diabloweb",
"version": "1.0.13", "version": "1.0.14",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@babel/core": "7.4.3", "@babel/core": "7.4.3",

View File

@@ -25,6 +25,13 @@ DiabloWeb ${process.env.VERSION} (${retail ? 'Retail' : 'Shareware'})
**Error message:** **Error message:**
${message.split("\n").map(line => " " + line).join("\n")} ${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(); return url.toString();
} }