try to fix unsupported message

This commit is contained in:
creeper123123321 2021-08-13 12:51:28 -03:00 committed by GitHub
parent f6ff671b1a
commit 56baa6df6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,7 @@ function ohNo() {
console.log("time seems synchronized");
}
})
if (!BroadcastChannel) addToast("Unsupported browser", "This browser doesn't support required APIs");
try {!BroadcastChannel} catch(e) {addToast("Unsupported browser", "This browser doesn't support required APIs");}
new Date().getDay() === 3 && console.log("it's snapshot day 🐸 my dudes");
new Date().getDate() === 1 && new Date().getMonth() === 3 && addToast("WARNING", "Your ViaVersion has expired, please renew it at https://viaversion.com/ for $99");
} catch (e) {