Minor cleanup
This commit is contained in:
parent
a2f26b057b
commit
f2087cab2d
|
@ -9,7 +9,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
var canvas = document.createElement('canvas');
|
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) {
|
} catch(e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,6 @@ const ALIAS = {
|
||||||
'right' : 39,
|
'right' : 39,
|
||||||
'down' : 40,
|
'down' : 40,
|
||||||
'space' : 32,
|
'space' : 32,
|
||||||
'pageup' : 33,
|
|
||||||
'pagedown': 34,
|
|
||||||
'tab' : 9,
|
'tab' : 9,
|
||||||
'escape' : 27
|
'escape' : 27
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue