components/old-browsers-message/old-browsers-message.js
function startOldBrowsersDetector(onOldBrowserDetected) {
  previousWindowErrorHandler = window.onerror;

  window.onerror = function oldBrowsersMessageShower(errorMsg, url, lineNumber) {
    if (onOldBrowserDetected) {
      onOldBrowserDetected();
    }

    if (previousWindowErrorHandler) {
      return previousWindowErrorHandler(errorMsg, url, lineNumber);
    }

    return false;
  };
}
function startOldBrowsersDetector(onOldBrowserDetected) {
  previousWindowErrorHandler = window.onerror;

  window.onerror = function oldBrowsersMessageShower(errorMsg, url, lineNumber) {
    if (onOldBrowserDetected) {
      onOldBrowserDetected();
    }

    if (previousWindowErrorHandler) {
      return previousWindowErrorHandler(errorMsg, url, lineNumber);
    }

    return false;
  };
}
function startOldBrowsersDetector ( onOldBrowserDetected ) { previousWindowErrorHandler = window . onerror ; window . onerror = function oldBrowsersMessageShower ( errorMsg , url , lineNumber ) { if ( onOldBrowserDetected ) { onOldBrowserDetected ( ) ; } if ( previousWindowErrorHandler ) { return previousWindowErrorHandler ( errorMsg , url , lineNumber ) ; } return false ; } ; }
Listens to unhandled errors and displays passed node
Listens to unhandled errors and displays passed node