From 07650eeadcef92e8ca49bfa25a9b6cf7a9864341 Mon Sep 17 00:00:00 2001 From: "P. Douglas Reeder" Date: Sat, 28 Sep 2024 21:20:33 -0400 Subject: [PATCH] Improves warning message --- src/systems/tracked-controls-webvr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/tracked-controls-webvr.js b/src/systems/tracked-controls-webvr.js index 0717ef0b3c6..ab62cc894ff 100644 --- a/src/systems/tracked-controls-webvr.js +++ b/src/systems/tracked-controls-webvr.js @@ -64,7 +64,7 @@ module.exports.System = registerSystem('tracked-controls-webvr', { this.el.emit('controllersupdated', undefined, false); } } catch (e) { - console.warn('can\'t update controller list:', e); + console.warn('A-Frame requires additional permissions to list the gamepads. If this is running in an IFRAME, you need to add `gamepads` to the `allow` attribute. If this is running as the top-level page, the HTTP `Permissions-Policy` header must not exclude this origin in the `gamepad` directive.', e); } } });