1"use strict"; 2 3/** 4 * @file 5 * Indicate if the web browser is Internet Explorer. 6 */ 7 8(($, { 9 behaviors 10}) => { 11 behaviors.browserClasses = { 12 attach: context => { 13 once('ie-browser-classes', 'html', context).forEach(html => { 14 const { 15 userAgent 16 } = navigator; 17 if (userAgent.match(/msie/i) || userAgent.match(/trident/i)) { 18 html.classList.add(`ie ie${document.documentMode}`); 19 } 20 }); 21 } 22 }; 23})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.