Skip to content

Commit fb529ae

Browse files
committed
chore: remove duplicated onerror listener
1 parent 2a95c2b commit fb529ae

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

frontend/src/ts/ui.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Config from "./config";
22
import * as Caret from "./test/caret";
3-
import * as Notifications from "./elements/notifications";
43
import * as CustomText from "./test/custom-text";
54
import * as TestState from "./test/test-state";
65
import * as ConfigEvent from "./observables/config-event";
@@ -56,13 +55,6 @@ function updateKeytips(): void {
5655
}
5756

5857
if (isDevEnvironment()) {
59-
window.onerror = function (error): void {
60-
if (JSON.stringify(error).includes("x_magnitude")) return;
61-
Notifications.add(JSON.stringify(error), -1, {
62-
important: true,
63-
duration: 5,
64-
});
65-
};
6658
$("header #logo .top").text("localhost");
6759
$("head title").text($("head title").text() + " (localhost)");
6860
$("body").append(

0 commit comments

Comments
 (0)