summaryrefslogtreecommitdiff
path: root/platform/web/js
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-10-23 19:12:57 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-10-23 19:13:42 +0200
commit8fcd54d13edbee1fedfa15bb60b735768e981887 (patch)
tree2cdae1e41632f380354a3449acf03b00de969835 /platform/web/js
parent8b37511364f1345a0636c576a9d31d572b8607ef (diff)
Improve feature errors in HTML5 for easier understanding
Diffstat (limited to 'platform/web/js')
-rw-r--r--platform/web/js/engine/features.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/web/js/engine/features.js b/platform/web/js/engine/features.js
index f91a4eff81..b7c6c9d445 100644
--- a/platform/web/js/engine/features.js
+++ b/platform/web/js/engine/features.js
@@ -76,19 +76,19 @@ const Features = { // eslint-disable-line no-unused-vars
getMissingFeatures: function () {
const missing = [];
if (!Features.isWebGLAvailable(2)) {
- missing.push('WebGL2');
+ missing.push('WebGL2 - Check web browser configuration and hardware support');
}
if (!Features.isFetchAvailable()) {
- missing.push('Fetch');
+ missing.push('Fetch - Check web browser version');
}
if (!Features.isSecureContext()) {
- missing.push('Secure Context');
+ missing.push('Secure Context - Check web server configuration (use HTTPS)');
}
if (!Features.isCrossOriginIsolated()) {
- missing.push('Cross Origin Isolation');
+ missing.push('Cross Origin Isolation - Check web server configuration (send correct headers)');
}
if (!Features.isSharedArrayBufferAvailable()) {
- missing.push('SharedArrayBuffer');
+ missing.push('SharedArrayBuffer - Check web server configuration (send correct headers)');
}
// Audio is normally optional since we have a dummy fallback.
return missing;