mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-13 10:54:28 +08:00
added error log
This commit is contained in:
parent
d0ad049ae3
commit
0a43625fab
1 changed files with 4 additions and 2 deletions
|
|
@ -5738,11 +5738,13 @@ if (firebase.app().options.projectId === "monkey-type-dev-67af4") {
|
|||
);
|
||||
}
|
||||
|
||||
// if (firebase.app().options.projectId === "monkey-type-dev-67af4") {
|
||||
if (window.location.hostname === "localhost") {
|
||||
if (firebase.app().options.projectId === "monkey-type-dev-67af4") {
|
||||
window.onerror = function (error) {
|
||||
Notifications.add(error, -1);
|
||||
};
|
||||
}
|
||||
|
||||
if (window.location.hostname === "localhost") {
|
||||
$("#top .logo .top").text("localhost");
|
||||
$("head title").text($("head title").text() + " (localhost)");
|
||||
firebase.functions().useFunctionsEmulator("http://localhost:5001");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue