21 lines
503 B
TypeScript
21 lines
503 B
TypeScript
"use client"
|
|
|
|
import { useEffect } from "react"
|
|
import { clearMailBackgroundDom } from "@/lib/mail-settings/mail-background-dom"
|
|
|
|
/** Marks document as Drive scope: no mail wallpaper, no first-launch splash. */
|
|
export function DriveRouteScope() {
|
|
useEffect(() => {
|
|
const html = document.documentElement
|
|
html.dataset.routeScope = "drive"
|
|
html.dataset.splashSeen = "1"
|
|
clearMailBackgroundDom(html)
|
|
|
|
return () => {
|
|
delete html.dataset.routeScope
|
|
}
|
|
}, [])
|
|
|
|
return null
|
|
}
|