added error log

This commit is contained in:
Miodec 2021-01-23 19:04:48 +00:00
parent d0ad049ae3
commit 0a43625fab

View file

@ -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");