Skip to content

Commit

Permalink
tracked-controls: updates wording of gamepad error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
DougReeder committed Oct 1, 2024
1 parent 9eaeb0f commit ab0065f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/tracked-controls-webvr.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ module.exports.System = registerSystem('tracked-controls-webvr', {
} catch (e) {
if (e.name === 'SecurityError') {
if (window.self === window.top) {
console.warn('A-Frame requires additional permissions to list the gamepads. The HTTP `Permissions-Policy` header must not exclude this origin in the `gamepad` directive.', e);
console.warn('The HTTP `Permissions-Policy` header must not block this origin in the `gamepad` directive, to allow A-Frame to list the gamepads.', e);
} else {
console.warn('A-Frame requires additional permissions to list the gamepads. The iframe `allow` attribute must not block this origin.', e);
console.warn('The iframe `allow` attribute must not block the origin of this A-Frame app, to allow A-Frame to list the gamepads.', e);
}
} else {
console.error('Can\'t update controller list:', e);
Expand Down

0 comments on commit ab0065f

Please sign in to comment.