logo

/Code Snippet|v2.3.3

Module

browserbrowser.jsline 30

Browser module

Static Properties

browser:

browser.jsline 30

This object has an information that indicate the kind of browser. It can detect IE8 ~ IE11, Chrome, Firefox, Safari, and Edge.

EXAMPLES
// ES6
import browser from 'tui-code-snippet/browser/browser';

// CommonJS
const browser = require('tui-code-snippet/browser/browser'); 

browser.chrome === true; // chrome
browser.firefox === true; // firefox
browser.safari === true; // safari
browser.msie === true; // IE
browser.edge === true; // edge
browser.others === true; // other browser
browser.version; // browser version
Resizable