1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00

Pwa is done hopefully

This commit is contained in:
zumbiepig 2024-08-20 07:51:11 -07:00
parent 3a6e6cfd93
commit 469f3eabc5
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
iframe.id = 'main_frame'
if (storage.local.get('lastVersion') === null) {
iframe.src = '/welcome.html';
iframe.src = '/welcome/';
} else if (lastPage !== null) {
iframe.src = lastPage;
} else if (isMobile) {

View File

@ -71,7 +71,7 @@
</select>
</div>
<div class="settings-section">
<label for="offline-checkbox">Enable offline:</label>
<label for="offline-checkbox">Enable offline use:</label>
<input type="checkbox" id="offline-checkbox" />
</div>
</div>

View File

@ -39,7 +39,7 @@
<option value="starfall">Starfall</option>
<option value="campfire">Campfire</option>
</select>
<label for="offline-checkbox">Enable offline:</label>
<label for="offline-checkbox">Enable offline use:</label>
<input type="checkbox" id="offline-checkbox" />
<button type="submit" class="setup-submit">Submit</button>
</form>

View File

@ -38,7 +38,7 @@ if (window.location.pathname === '/settings/') {
});
}
if (window.location.pathname === '/welcome.html') {
if (window.location.pathname === '/welcome/') {
document.addEventListener('DOMContentLoaded', () => {
const setupForm = document.getElementById('setup-form') as HTMLFormElement;
const usernameInput = document.getElementById('username-input') as HTMLInputElement;