Fix cache reminder not working on most browsers.

This commit is contained in:
purple 2023-08-13 16:37:37 +02:00
parent 83b80059fc
commit 0746fc80df
3 changed files with 3 additions and 4 deletions

View file

@ -5,7 +5,9 @@ updateCacheReminder() {
# Overwrite previous adminCacheReminderHider with the default one. # Overwrite previous adminCacheReminderHider with the default one.
oldClassName=$(cat .blueprint/data/internal/db/randomclassname); oldClassName=$(cat .blueprint/data/internal/db/randomclassname);
newClassName=$RANDOM; 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" 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" 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; echo "$newClassName" > .blueprint/data/internal/db/randomclassname;
} }

View file

@ -1,4 +1,5 @@
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css"); @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 { @keyframes notification {
0% {right:-300px;top:62px;opacity:0;background-color: #2a3743;} 0% {right:-300px;top:62px;opacity:0;background-color: #2a3743;}
@ -7,10 +8,6 @@
100% {right:-300px;top:62px;opacity:0;background-color: #2a3743;} 100% {right:-300px;top:62px;opacity:0;background-color: #2a3743;}
} }
.cacheOverlay-1 {
display:none;
}
.notification { .notification {
opacity:0; opacity:0;
position:fixed; position:fixed;