1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

flutter refresh local storage

This commit is contained in:
David Bomba 2020-08-18 09:02:17 +10:00
parent 46c0340403
commit 5ccfb453e9

View File

@ -73,6 +73,12 @@
</style>
<script>
@if (request()->clear)
window.onload = function() {
window.localStorage.clear();
}
@endif
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/flutter_service_worker.js?v={{ $hash }}');