JSFiddle - React, Tailwind, and code Playground
by Ajith S Punalur
JavaScript
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)){
v = parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))) // VERSION
console.log("IE " + v);
//evt = document.createEvent("Event");
//evt.initEvent("resize", true, false);window.dispatchEvent(evt);
} else {
console.log('other browser: ' + ua);
//window.dispatchEvent(new Event('resize'));
}