title: matchMedia().addListener marked as deprecated, addEventListener equivalent?
body: <p>I'm making use of <code>matchMedia().addListener</code> to detect dark/light mode theme preference changes in Safari, however in WebStorm using <code>addListener</code> is marked as deprecated but simply says to refer to documentation for what should replace it.</p>
  <p>I've had a read through the MDN docs and I don't understand what event type I should be listening for in <code>addEventListener</code> to replace <code>addListener</code>?</p>
  <pre class="lang-js prettyprint-override"><code>window.matchMedia(&quot;(prefers-color-scheme: dark)&quot;).addListener(() =&gt; this.checkNative());
  window.matchMedia(&quot;(prefers-color-scheme: light)&quot;).addListener(() =&gt; this.checkNative());
  </code></pre>