Friendly error messages for featureDetect

This commit is contained in:
Fred Boniface 2025-05-02 20:47:26 +01:00
parent 182136fc6b
commit 1c308321de

View File

@ -24,9 +24,9 @@
onMount(async () => {
const featureSupport = featureDetect();
if (!featureSupport.critical) {
toast.error("Your browser is missing critical features, OwlBoard might not work properly. See `Menu > Statistics` for more information.");
toast.error("Use a newer browser or OwlBoard might not work properly. See `Menu > Statistics` for more information.");
} else if (!featureSupport.nice) {
toast.error("Your browser is missing some features, see `Menu > Statistics` for more information.");
toast.error("Use a newer browser for the best experience, see `Menu > Statistics` for more information.");
}
});
</script>