title: Sentry JS does not ignore global errors
body: <p>I use <code>@sentry/react</code> with my React/Redux application with the next setup:</p>
  <pre><code>Sentry.init({
    ignoreErrors: [
      &quot;top.GLOBALS&quot;,
      &quot;$ is not a function&quot;,
      &quot;A.getAll is not a function.&quot;,
      &quot;Cannot read property 'offsetWidth' of undefined&quot;,
      &quot;undefined is not an object (evaluating 'tiles[0].offsetWidth')&quot;,
    ],
    integrations: [
      new Sentry.Integrations.GlobalHandlers({
        onerror: false,
        onunhandledrejection: false,
      }),
    ],
    dsn:
      &quot;https://*****.ingest.sentry.io/****&quot;,
  });
  </code></pre>
  <p>Then I wrap my app like this:</p>
  <pre><code>    ReactDOM.render(
        &lt;Sentry.ErrorBoundary&gt;
          &lt;Provider store={initializeStore()}&gt;
            &lt;StyleSheetManager target={styleContainer}&gt;
              &lt;App /&gt;
            &lt;/StyleSheetManager&gt;
          &lt;/Provider&gt;
        &lt;/Sentry.ErrorBoundary&gt;,
        reactRoot
      );
  </code></pre>
  <p>Since my application is installed on a ton of my clients websites - there are always error which a produced in the scopes outside of my app, as you can see in the config - I'm trying to ignore them in order to not push my sentry subscription limits, but it does not really work - I keep getting 2 million errors per month. It there anything else I can do except Sentry On Premise installation?</p>