Skip to content

Commit f3794b9

Browse files
format
1 parent b87b132 commit f3794b9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/lib/startAd.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,16 @@ export default async function startAd() {
2727

2828
await admob.start();
2929

30-
3130
const currentHour = new Date().getHours();
3231
//currentHour >= 22: Covers 10:00 PM to 11:59 PM.
3332
//currentHour < 5: Covers 12:00 AM to 4:59 AM.
3433
const isQuietHours = currentHour >= 22 || currentHour < 5;
3534

3635
await admob.configure({
3736
appMuted: isQuietHours,
38-
appVolume: isQuietHours ? 0.0 : 1.0
37+
appVolume: isQuietHours ? 0.0 : 1.0,
3938
});
4039

41-
4240
const banner = new admob.BannerAd({
4341
adUnitId: adUnitIdBanner,
4442
position: "bottom",

0 commit comments

Comments
 (0)