hotfix
This commit is contained in:
parent
b5e8d68887
commit
4dd4076a83
12
index.html
12
index.html
|
|
@ -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, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");}
|
||||
|
||||
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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue