n.</p>
</div>
<p>We create a new script with <code><a href="https://rdrr.io/pkg/charpente/man/create_file.html">create_js("helpers_pwa")</a></code> and export the <code>setPWA</code> function:</p>
<div class="sourceCode" id="cb935"><pre class="sourceCode js"><code class="sourceCode javascript"><span id="cb935-1"><a href="mobile-pwa.html#cb935-1" aria-hidden="true" tabindex="-1"></a><span class="im">export</span> <span class="kw">const</span> setPWA <span class="op">=</span> (app) <span class="kw">=&gt;</spa