flutter refresh local storage
This commit is contained in:
parent
46c0340403
commit
5ccfb453e9
1 changed files with 6 additions and 0 deletions
|
|
@ -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 }}');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue