@blueprintjs/core
Version:
Core styles & components
19 lines (18 loc) • 707 B
JavaScript
;
/*
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the terms of the LICENSE file distributed with this project.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var userAgent = typeof navigator !== "undefined" ? navigator.userAgent : "";
var browser = {
isEdge: !!userAgent.match(/Edge/),
isInternetExplorer: !!userAgent.match(/Trident/) || !!userAgent.match(/rv:11/),
isWebkit: !!userAgent.match(/AppleWebKit/),
};
exports.Browser = {
isEdge: function () { return browser.isEdge; },
isInternetExplorer: function () { return browser.isInternetExplorer; },
isWebkit: function () { return browser.isWebkit; },
};