mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
offline use
This commit is contained in:
parent
eb738e6bd8
commit
7d529426fc
@ -311,6 +311,8 @@ if (window.location.pathname === '/') {
|
||||
|
||||
if (storage.local.get('offlineCache') === true) {
|
||||
serviceworker.register();
|
||||
} else {
|
||||
serviceworker.unregister();
|
||||
}
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
@ -7,6 +7,7 @@ if (window.location.pathname === '/settings/') {
|
||||
|
||||
usernameInput.placeholder = storage.local.get('username') ?? '';
|
||||
themeSelect.value = storage.local.get('theme') ?? '';
|
||||
offlineCheckbox.checked = storage.local.get('offlineCache') ?? false;
|
||||
|
||||
usernameInput.addEventListener('input', () => {
|
||||
let username = usernameInput.value.replace(/[^A-Za-z0-9]/g, '_').substring(0, 16);
|
||||
|
Loading…
x
Reference in New Issue
Block a user