feat: cleaner exempt

This commit is contained in:
TrèsAbhi committed 2024-06-15 13:24:53 -05:00
1 parent 14e45d97d2
commit 57fa29cc6e
6 files changed
+69 -55

No files matched your search

-4
View File
@@ -5,7 +5,6 @@ import { uniqueId } from 'lodash';
import { useEffect, useRef } from 'react';
import { Vector2Tuple } from 'three';
import { imgur } from '../core/blitzkit/imgur';
import { useAdExempt } from '../hooks/useAdExempt';
export enum AdType {
MediumRectangleHorizontalPurple = 738182777,
@@ -28,9 +27,6 @@ type AdProps = BoxProps & {
export function Ad({ type, style, ...props }: AdProps) {
const id = useRef(uniqueId());
const dimensions = AD_DIMENSIONS[type];
const exempt = useAdExempt();
if (exempt) return null;
useEffect(() => {
(window as any).msAdsQueue.push(function () {