Skip to content

Commit 9766262

Browse files
committed
add operating system on bug report
1 parent df37ea3 commit 9766262

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ <h1>An error has occurred</h1>
203203
<li>What did you do before this error occurred.</li>
204204
<li>The following error message: <code id="error-code"></code></li>
205205
<li>
206-
Your browser and its version: <span id="browser-details"></span>
206+
Your browser, its version, and your operating system: <span id="browser-details"></span>
207207
</li>
208208
</ul>
209209
<button id="error-close-button">Close</button>

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function main(): void {
161161
addEventListener("error", (event) => {
162162
errorCode.innerText = event.message;
163163
const details = new BrowserDetector(navigator.userAgent).getBrowserInfo();
164-
browserDetails.innerText = `${details.name} ${details.version}`;
164+
browserDetails.innerText =
165+
`${details.name} ${details.version} ${details.platform}`;
165166
errorBox.showModal();
166167
});
167168

0 commit comments

Comments
 (0)