Fix cache reminder not working on most browsers.
This commit is contained in:
parent
83b80059fc
commit
0746fc80df
3 changed files with 3 additions and 4 deletions
|
@ -5,7 +5,9 @@ updateCacheReminder() {
|
|||
# Overwrite previous adminCacheReminderHider with the default one.
|
||||
oldClassName=$(cat .blueprint/data/internal/db/randomclassname);
|
||||
newClassName=$RANDOM;
|
||||
mv public/assets/extensions/blueprint/misc/cacheOverlay-$oldClassName public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName;
|
||||
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/blueprint.style.css;
|
||||
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" resources/views/layouts/admin.blade.php;
|
||||
sed -i "s~cacheOverlay-$oldClassName~cacheOverlay-$newClassName~g" public/assets/extensions/blueprint/misc/cacheOverlay-$newClassName;
|
||||
echo "$newClassName" > .blueprint/data/internal/db/randomclassname;
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");
|
||||
@import url("/assets/extensions/blueprint/misc/cacheOverlay-1.css");
|
||||
|
||||
@keyframes notification {
|
||||
0% {right:-300px;top:62px;opacity:0;background-color: #2a3743;}
|
||||
|
@ -7,10 +8,6 @@
|
|||
100% {right:-300px;top:62px;opacity:0;background-color: #2a3743;}
|
||||
}
|
||||
|
||||
.cacheOverlay-1 {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.notification {
|
||||
opacity:0;
|
||||
position:fixed;
|
||||
|
|
Loading…
Reference in a new issue