title: why javascript notification not showing?
body: <p>I am using below example.it show show me <code>chrome</code> notification default.but when I click on button it doesn't show show me notification why ?</p>
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/API/notification" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/notification</a></p>
  <p>I am using <code>83 v chrome</code> and mac
  <a href="https://i.stack.imgur.com/wb1Ac.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wb1Ac.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/kBseD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kBseD.png" alt="enter image description here" /></a></p>
  <p>I used two example first one is <code>simple</code> and second one to get permission then show .both are not working</p>
  <p>here is my code</p>
  <p><a href="https://codesandbox.io/s/nostalgic-tdd-9kto3?file=/src/App.js:249-1123" rel="nofollow noreferrer">https://codesandbox.io/s/nostalgic-tdd-9kto3?file=/src/App.js:249-1123</a></p>
  <pre><code>&lt;button
          onClick={() =&gt; {
            var notification = new Notification(&quot;Hi there!&quot;);
  
            // another example
  
            // if (!(&quot;Notification&quot; in window)) {
            //   alert(&quot;This browser does not support desktop notification&quot;);
            // }
  
            // // Let's check whether notification permissions have already been granted
            // else if (Notification.permission === &quot;granted&quot;) {
            //   // If it's okay let's create a notification
            //   var notification = new Notification(&quot;Hi there!&quot;);
            // }
  
            // // Otherwise, we need to ask the user for permission
            // else if (Notification.permission !== &quot;denied&quot;) {
            //   Notification.requestPermission().then(function(permission) {
            //     // If the user accepts, let's create a notification
            //     if (permission === &quot;granted&quot;) {
            //       var notification = new Notification(&quot;Hi there!&quot;);
            //     }
            //   });
            // }
          }}
        &gt;
          notify
        &lt;/button&gt;
  </code></pre>