File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
2
<!-- A warning message box to inform the user that their browser does not support WebGL 2.0 -->
3
3
<dialog class =" warning-message-box" >
4
- Sorry, this website will not work on this device.
4
+ Unsupported device.
5
+ <br /><br />
5
6
This device is missing a required WebGL extension.
6
- This is a known <a href =" https://github.com/openlayers/openlayers/issues/15581" >issue</a > with some Android devices.
7
+ This is a known <a href =" https://github.com/openlayers/openlayers/issues/15581" >issue</a > with some Android phones.
8
+ Data maps will not render correctly.
7
9
8
10
<br /><br />
9
11
Please visit from another device.<br />
@@ -33,7 +35,11 @@ function WebGL_Has_OES_texture_float() {
33
35
document.addEventListener('DOMContentLoaded', () => {
34
36
if (!WebGL_Has_OES_texture_float()) {
35
37
const el = document.querySelector('.warning-message-box') as HTMLDialogElement;
36
- if (el) el.showModal();
38
+ if (!el) return;
39
+ // Set 5 second delay then show the modal
40
+ setTimeout(() => {
41
+ el.showModal();
42
+ }, 5000);
37
43
}
38
44
});
39
45
</script >
You can’t perform that action at this time.
0 commit comments