From f2087cab2d9cf51144a1ca154b9444368d3855a4 Mon Sep 17 00:00:00 2001 From: Paul Graffam Date: Fri, 7 Oct 2016 04:40:29 -0400 Subject: [PATCH] Minor cleanup --- src/js/utils/detector.js | 2 +- src/js/utils/keyboard.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/utils/detector.js b/src/js/utils/detector.js index 99a7ab8..3010808 100644 --- a/src/js/utils/detector.js +++ b/src/js/utils/detector.js @@ -9,7 +9,7 @@ export default { try { var canvas = document.createElement('canvas'); - return !!( window.WebGLRenderingContext && ( canvas.getContext('webgl') || canvas.getContext('experimental-webgl') ) ); + return !!(window.WebGLRenderingContext && (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'))); } catch(e) { return false; } diff --git a/src/js/utils/keyboard.js b/src/js/utils/keyboard.js index 4e9533d..24c93b5 100644 --- a/src/js/utils/keyboard.js +++ b/src/js/utils/keyboard.js @@ -4,8 +4,6 @@ const ALIAS = { 'right' : 39, 'down' : 40, 'space' : 32, - 'pageup' : 33, - 'pagedown': 34, 'tab' : 9, 'escape' : 27 };