mirror of
https://gitea.shironeko-all.duckdns.org/shironeko/Hytale-F2P-2.git
synced 2026-02-26 02:31:46 -03:00
* feat: Add Repair Game functionality including UserData backup and cache clearing * feat: Add In-App Logs Viewer and Logs Folder shortcut * feat: Add Open Logs feature * disable dev tools * Fix Settings UI * fix reorder settings section in index.html relocated sections in settings from most used to least: 1. game options (playername, opengamedir, repair, GPUpreference) 2. player uuid management 3. discord integration rich presence 4. custom java path --------- Co-authored-by: Fazri Gading <super.fai700@gmail.com>
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
import './ui.js';
|
|
import './install.js';
|
|
import './launcher.js';
|
|
import './news.js';
|
|
import './mods.js';
|
|
import './players.js';
|
|
import './chat.js';
|
|
import './settings.js';
|
|
import './logs.js';
|
|
|
|
window.closeDiscordNotification = function () {
|
|
const notification = document.getElementById('discordNotification');
|
|
if (notification) {
|
|
notification.classList.add('hidden');
|
|
setTimeout(() => {
|
|
notification.style.display = 'none';
|
|
}, 300);
|
|
}
|
|
};
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const notification = document.getElementById('discordNotification');
|
|
if (notification) {
|
|
const dismissed = localStorage.getItem('discordNotificationDismissed');
|
|
if (!dismissed) {
|
|
setTimeout(() => {
|
|
notification.style.display = 'flex';
|
|
}, 3000);
|
|
} else {
|
|
notification.style.display = 'none';
|
|
}
|
|
}
|
|
});
|
|
|
|
const originalClose = window.closeDiscordNotification;
|
|
window.closeDiscordNotification = function () {
|
|
localStorage.setItem('discordNotificationDismissed', 'true');
|
|
originalClose();
|
|
}; |