title: Body of notifications not showing up JavaScript
body: <p>I made a live chat script and when the user sends a message it should show a notification, although it does show the notification it does not show the body of the notification. Here is my code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>            $(document).ready(function () {
              function askNotificationPermission() {
                     function handlePermission(permission) {
                       if(Notification.permission === 'denied' || Notification.permission === 'default') {
                         alert("You denied notification access");
                       } else {
                       }
                     }
                   
                     if (!('Notification' in window)) {
                       console.log("This browser does not support notifications.");
                     } else {
                       if(checkNotificationPromise()) {
                         Notification.requestPermission()
                         .then((permission) =&gt; {
                           handlePermission(permission);
                         })
                       } else {
                         Notification.requestPermission(function(permission) {
                           handlePermission(permission);
                         });
                       }
                     }
                   }
                   function checkNotificationPromise() {
                       try {
                         Notification.requestPermission().then();
                       } catch(e) {
                         return false;
                       }
                       return true;
                   }
                  $("#submitmsg").click(function () {
                      var clientmsg = $("#usermsg").val();
                      $.post("post.php", { text: clientmsg });
                      $("#usermsg").val("");
                      var img = "../../images/icon.png";
                      var notofication = new Notification("Chat", { body: clientmsg, icon: img }); 
                      return false;
                  });
                  function loadLog() {
                      var oldscrollHeight = $("#chatbox")[0].scrollHeight - 20;
                      $.ajax({
                          url: "log.html",
                          cache: false,
                          success: function(html) {
                              $("#chatbox").html(html);
                              var newscrollHeight = $("#chatbox")[0].scrollHeight - 20;
                              if(newscrollHeight &gt; oldscrollHeight){
                                  $("#chatbox").animate({ scrollTop: newscrollHeight }, 'normal');
                              }   
                          }
                      });
                  }
                  setInterval(loadLog, 200);
              });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="text" autocomplete="off" id="usermsg" placeholder="Type something..."/&gt; &lt;button id="submitmsg"&gt;Send&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>It does show the notification but does not show the body of notification, any help is appreciated.</p>