Load the offline image quietly in the background

This commit is contained in:
kolaente 2019-10-17 21:54:05 +02:00
parent 3211e1e8ea
commit 52bdae90d3
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -1,6 +1,8 @@
<template> <template>
<div> <div>
<div v-if="isOnline"> <div v-if="isOnline">
<!-- This is a workaround to get the sw to "see" the to-be-cached version of the offline background image -->
<div class="offline" style="height: 0;width: 0;"></div>
<nav class="navbar main-theme is-fixed-top" role="navigation" aria-label="main navigation" <nav class="navbar main-theme is-fixed-top" role="navigation" aria-label="main navigation"
v-if="user.authenticated && user.infos.type === authTypes.USER"> v-if="user.authenticated && user.infos.type === authTypes.USER">
<div class="navbar-brand"> <div class="navbar-brand">