code: function isBrowserMS () {
    let result = false
    try {
      result = document.documentMode || /Edge/.test(navigator.userAgent)
    } catch (e) {} // eslint-disable-line no-empty
  
    return result
  }
docs: Used try-catch due to missing document/navigator references in Jenkins