autoregister sw
This commit is contained in:
parent
cba59e66c7
commit
8f83a27885
6 changed files with 1 additions and 38 deletions
|
|
@ -16,8 +16,6 @@
|
|||
<link rel="stylesheet" href="{path('/styles/vendor/cssgg.min.css')}">
|
||||
<link rel="stylesheet" href="{path('/styles/vendor/bulma.min.css')}">
|
||||
<title>{$title} - ProxiTok</title>
|
||||
{*/ Handles optional Service Worker /*}
|
||||
{if \App\Helpers\Cookies::check('misc-sw', 'yes')}
|
||||
{*/ Handles Service Worker /*}
|
||||
<script src="{path('/scripts/setup_sw.js')}"></script>
|
||||
{/if}
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
{embed '../form.latte', path: '/settings/misc', method: 'POST', submit: true}
|
||||
{block fields}
|
||||
<div class="field">
|
||||
<label class="label">Enable service worker</label>
|
||||
<div class="control">
|
||||
<label class="radio">
|
||||
<input type="radio" name="misc-sw" value="yes" n:attr="checked => $isServiceWorker" />
|
||||
<span>Yes</span>
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input type="radio" name="misc-sw" value="no" n:attr="checked => !$isServiceWorker" />
|
||||
<span>No</span>
|
||||
</label>
|
||||
</div>
|
||||
<p class="help">This can be used to install the PWA version of ProxiTok</p>
|
||||
</div>
|
||||
{/block}
|
||||
{/embed}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
{if \App\Helpers\Cookies::check('misc-sw', 'yes')}
|
||||
<script src="{path('/scripts/setup_sw.js')}"></script>
|
||||
{/if}
|
||||
Loading…
Add table
Add a link
Reference in a new issue