💄 oo-connector: Fixed error page to show 500, correct e-mail, removed GA (#525)

This commit is contained in:
Eric Doughty-Papassideris
2024-09-05 13:27:40 +02:00
parent 9bc9dcafee
commit 996c7a9a61
2 changed files with 17 additions and 21 deletions
@@ -11,7 +11,6 @@ export default (error: Error & { status?: number }, req: Request, res: Response,
res.status(status); res.status(status);
res.render('error', { res.render('error', {
server: makeURLTo.rootAbsolute(),
errorMessage: message, errorMessage: message,
}); });
} catch (error) { } catch (error) {
@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>404 HTML Tempate by Colorlib</title> <title>500 Internal Server Error</title>
<style id="" media="all">/* vietnamese */ <style id="" media="all">/* vietnamese */
@font-face { @font-face {
@@ -141,7 +141,6 @@
font-size: 16px; font-size: 16px;
color: #000; color: #000;
font-weight: 400; font-weight: 400;
text-transform: uppercase;
margin-top: 15px margin-top: 15px
} }
@@ -176,6 +175,20 @@
font-size: 26px font-size: 26px
} }
} }
@media (prefers-color-scheme: dark) {
.notfound .notfound-404 h1 {
color: #444444;
}
.notfound h2 {
color: #fff;
}
.notfound p {
color: #fff;
}
}
</style> </style>
<meta name="robots" content="noindex, follow"> <meta name="robots" content="noindex, follow">
</head> </head>
@@ -186,26 +199,10 @@
<h1>500</h1> <h1>500</h1>
</div> </div>
<h2>We are sorry, internal server error!</h2> <h2>We are sorry, internal server error!</h2>
<p>Please, contact our support at support@twake.com.</p> <p>Please, contact our support at :</p>
<a href="/">Back To Homepage</a> <a href="mailto:support@twake.app">support@twake.app</a>
</div> </div>
</div> </div>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-23581568-13");
</script>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"
integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ=="
data-cf-beacon='{"rayId":"8a39e81aa92e00bb","serverTiming":{},"version":"2024.6.1","token":"cd0b4b3a733644fc843ef0b185f98241"}'
crossorigin="anonymous"></script>
</body> </body>
</html> </html>