mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: we don't talk about it
This commit is contained in:
1 parent
71e1ab1362
commit
8ef355c574
13 files changed
+20
-230
No files matched your search
@@ -44,7 +44,6 @@ export * from './unwrapBlitzkitResponse';
|
||||
export * from './votes';
|
||||
// export * from './withCORSProxy';
|
||||
export * from './createDefaultProvisions';
|
||||
export * from './isFunny';
|
||||
export * from './metaSortTank';
|
||||
export * from './romanize';
|
||||
export * from './youtubers';
|
||||
@@ -1,17 +0,0 @@
|
||||
const FUNNY_DATES: [number, number][] = [
|
||||
[4, 1],
|
||||
[4, 2],
|
||||
[4, 3],
|
||||
];
|
||||
|
||||
export function isFunny() {
|
||||
return true;
|
||||
|
||||
const now = new Date();
|
||||
|
||||
return (
|
||||
FUNNY_DATES.some(
|
||||
([month, day]) => now.getMonth() === month - 1 && now.getDate() === day,
|
||||
) || import.meta.env.DEBUG_FUNNY === 'true'
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user