Skip to content

Commit e949833

Browse files
feat: reduce time range to 4am
1 parent f3794b9 commit e949833

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/startAd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default async function startAd() {
2929

3030
const currentHour = new Date().getHours();
3131
//currentHour >= 22: Covers 10:00 PM to 11:59 PM.
32-
//currentHour < 5: Covers 12:00 AM to 4:59 AM.
33-
const isQuietHours = currentHour >= 22 || currentHour < 5;
32+
//currentHour < 4: Covers 12:00 AM to 3:59 AM.
33+
const isQuietHours = currentHour >= 22 || currentHour < 4;
3434

3535
await admob.configure({
3636
appMuted: isQuietHours,

0 commit comments

Comments
 (0)