title: How do I restart or kill Google Chrome using vanilla JavaScript code?
body: <p>I can't use,</p>
  
  <pre><code>window.location = 'chrome://restart'; 
  </code></pre>
  
  <p>Because then I get this error message: </p>
  
  <blockquote>
    <p>"Not allowed to load local resource: chrome://restart/"</p>
  </blockquote>
  
  <p>So what do I do to restart or kill Google Chrome using vanilla Javascript?</p>