mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-28 06:08:13 -05:00
Fix supporters seeing ads on error page
This commit is contained in:
@@ -197,7 +197,9 @@ function Document({
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="theme-color" content="#010115" />
|
||||
{import.meta.env.VITE_FUSE_ENABLED &&
|
||||
!data?.user?.roles.includes("MINOR_SUPPORT") ? (
|
||||
// check for data so supporters don't see ads on error page
|
||||
data &&
|
||||
!data.user?.roles.includes("MINOR_SUPPORT") ? (
|
||||
<script
|
||||
async
|
||||
src="https://cdn.fuseplatform.net/publift/tags/2/4242/fuse.js"
|
||||
|
||||
Reference in New Issue
Block a user