Remove old mobile detection stuff from mod queue

This commit is contained in:
regalijan 2023-10-19 16:49:59 -04:00
parent 41ec8801d7
commit 9f3b964754
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -26,19 +26,11 @@ import NewInactivityNotice from "../../components/NewInactivityNotice.js";
export async function loader({ context }: { context: RequestContext }) {
const { current_user: currentUser } = context.data;
const ch = context.request.headers.get("sec-ch-ua-mobile");
const ua = context.request.headers.get("user-agent");
if (!currentUser)
throw new Response(
JSON.stringify({
ch,
ua,
}),
{
status: 401,
}
);
throw new Response(null, {
status: 401,
});
const departments = {
DM: 1 << 2,
@ -85,7 +77,7 @@ export async function loader({ context }: { context: RequestContext }) {
}
if (!allowedTypes.length)
throw new Response(JSON.stringify({ ch, ua }), {
throw new Response(null, {
status: 403,
});