title: How to I use WebPushr in Nuxt JS
body: <p>How do I use WebPushr in a Nuxt JS PWA to send push notifications. I have followed the guide on their online documentation <a href="https://docs.webpushr.com/manual-integration" rel="nofollow noreferrer">https://docs.webpushr.com/manual-integration</a> but I can't seem to make it work in Nuxt JS.</p>
  <pre><code>// start webpushr code
      (function(w,d, s, id) {
        if(typeof(w.webpushr)!=='undefined')
          return;
        w.webpushr=w.webpushr||function(){
          (w.webpushr.q=w.webpushr.q||[]).push(arguments)
        };
        var js, fjs = d.getElementsByTagName(s)[0];
        js = d.createElement(s);
        js.id = id;js.src = &quot;https://cdn.webpushr.com/app.min.js&quot;;
        fjs.parentNode.appendChild(js);
      }(window,document, 'script', 'webpushr-jssdk'));
      webpushr('setup',{
        'key':'my-webpushr-key'
      });
      // end webpushr code
  </code></pre>
  <p>Do I create a plugin to make it work with the provided service worker or I'm missing something ?</p>