Fix right-click for Firefox and IE

Fix #310
This commit is contained in:
Paris Kasidiaris
2016-11-04 18:33:04 +02:00
parent 0fcd6b1d22
commit 356377975b
3 changed files with 48 additions and 19 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* xterm.js: xterm, in the browser
* Copyright (c) 2016, SourceLair Private Company <www.sourcelair.com> (MIT License)
*/
/**
* Browser utilities module. This module contains attributes and methods to help with
* identifying the current browser and platform.
* @module xterm/utils/Browser
*/
let userAgent = navigator.userAgent;
let platform = navigator.platform;
export let isFirefox = !!~userAgent.indexOf('Firefox');
export let isMSIE = !!~userAgent.indexOf('MSIE');