warn for safari

This commit is contained in:
creeper123123321 2021-08-13 06:41:19 -03:00 committed by GitHub
parent 05424d1e7a
commit f6ff671b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,6 +246,7 @@ function ohNo() {
console.log("time seems synchronized");
}
})
if (!BroadcastChannel) 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) {
@ -776,4 +777,4 @@ function sendSocket(msg) {
return
}
socket.send(msg);
}
}