File size: 567 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export default function Root({ children }) {
  return (
    <html>
      <head>
        <script src="https://cdn.tailwindcss.com?plugins=typography"></script>
        <title>Hello World</title>
        <script
          dangerouslySetInnerHTML={{
            __html: `if (location.search.includes('bot')) {
              Object.defineProperty(navigator, 'userAgent', {
                value: new URLSearchParams(location.search).get("useragent"),
              });
            }`,
          }}
        />
      </head>
      <body>{children}</body>
    </html>
  )
}