mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24:48 +00:00
fix checkbox
This commit is contained in:
parent
602c694fc8
commit
2f812faad0
@ -9,7 +9,8 @@ if (window.location.pathname === '/settings/') {
|
||||
usernameInput.placeholder = storage.local.get('username') ?? '';
|
||||
themeSelect.value = storage.local.get('theme') ?? 'default';
|
||||
// offlineCheckbox.checked = storage.local.get('offlineCache') ?? false;
|
||||
adsCheckbox.checked = storage.local.get('showAds') ?? true;
|
||||
const showAds = storage.local.get('showAds');
|
||||
adsCheckbox.checked = showAds === null ? true : showAds;
|
||||
|
||||
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