fix: flashbang

This commit is contained in:
nate 2026-03-19 10:08:20 +04:00
parent d8d1952304
commit 96a58233fd
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ const EMAIL_HMAC_KEY = process.env.EMAIL_HMAC_KEY || "pingql-default-hmac-key";
function redir(to: string) {
return new Response(
`<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"></head><body></body></html>`,
`<!DOCTYPE html><html lang="en" class="dark"><head><meta charset="UTF-8"><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"><style>html,body{background:#0a0a0a;margin:0;height:100%}</style></head><body></body></html>`,
{ headers: { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" } },
);
}

View File

@ -112,7 +112,7 @@ export function html(template: string, data: Record<string, unknown> = {}) {
function redirect(to: string) {
return new Response(
`<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"></head><body></body></html>`,
`<!DOCTYPE html><html lang="en" class="dark"><head><meta charset="UTF-8"><meta http-equiv="refresh" content="0;url=${to}"><meta name="robots" content="noindex"><style>html,body{background:#0a0a0a;margin:0;height:100%}</style></head><body></body></html>`,
{ headers: { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" } },
);
}