Friendly error messages for featureDetect
This commit is contained in:
parent
182136fc6b
commit
1c308321de
@ -24,9 +24,9 @@
|
|||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
const featureSupport = featureDetect();
|
const featureSupport = featureDetect();
|
||||||
if (!featureSupport.critical) {
|
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) {
|
} 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>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user