This commit is contained in:
slweeb 2025-07-17 17:37:39 -04:00
parent b5e8d68887
commit 4dd4076a83
2 changed files with 11 additions and 5 deletions

View File

@ -109,7 +109,7 @@
<script> // PWA things
// add service worker service-worker.js
if (typeof navigator !== 'undefined') {
if (typeof navigator !== 'undefined' && !standalone) {
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js');
@ -13248,7 +13248,7 @@ SEEDRISE: function(pixel) {
};
// detect if discord activity
if (location.hostname.match(/discordsays/i)) {
if (!standalone && location.hostname.match(/discordsays/i)) {
standalone = true;
standaloneType = "discord";
}
@ -17923,7 +17923,13 @@ for (var k = 0; k < b0.split(" AND ").length; k++) {
function escapeHTML(unsafe) {return unsafe.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");}
const rtf = new Intl.RelativeTimeFormat(langCode||"en", { style:"short", numeric:"auto" });
rtf = null;
try {
rtf = new Intl.RelativeTimeFormat(langCode||"en", { style:"short", numeric:"auto" });
}
catch {
rtf = new Intl.RelativeTimeFormat("en", { style:"short", numeric:"auto" });
}
function saveMenuOptions(item) {
if (item.workshop && standalone && !item.localFile) {

View File

@ -924,9 +924,9 @@ a.texticon {
a.texticon:hover, a.texticon:active, a.texticon:hover:active {
color: rgba(0,0,0,0);
}
.standalone.mobile #savesButton, .standalone.mobile #extraInfo {
/* .standalone.mobile #savesButton, .standalone.mobile #extraInfo {
display: none
}
} */
.standalone #extraLinks, .standalone #attribution {
display: none!important
}