UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

22 lines (17 loc) 526 B
import _ from 'lodash'; /** * just a place to put feature detection checks */ export default { cssFilters: (function () { let e = document.createElement('img'); let rules = ['webkitFilter', 'mozFilter', 'msFilter', 'filter']; let test = 'grayscale(1)'; rules.forEach(function (rule) { e.style[rule] = test; }); document.body.appendChild(e); let styles = window.getComputedStyle(e); let can = _(styles).pick(rules).includes(test); document.body.removeChild(e); return can; }()) };