Okay
  Public Ticket #3130694
insert code in head
Closed

Comments

  • dramalanguage started the conversation

    Hello wplms

    I am trying to distribute a pwa app.
    And the documentation instructed me to insert the code below into the head. Where can I insert the code below?

    <link rel="manifest" href="manifest.json" />


    <script type="module">
       import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate';
       const el = document.createElement('pwa-update');
       document.body.appendChild(el);
    </script>

  • [deleted] replied

    There is no need to add : <link rel="manifest" href="manifest.json" />
    Its already done at pwa page (bp single page ) . 

    Please follow this :