Move webgl renderer into addon dir

This commit is contained in:
Daniel Imms
2019-06-14 23:55:17 -07:00
parent 535c8a5d4b
commit d7daa53b50
29 changed files with 186 additions and 15 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* Copyright (c) 2016 The xterm.js authors. All rights reserved.
* @license MIT
*/
const isNode = (typeof navigator === 'undefined') ? true : false;
const userAgent = (isNode) ? 'node' : navigator.userAgent;
export const isFirefox = !!~userAgent.indexOf('Firefox');
export const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);