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:
parent
3a6e6cfd93
commit
469f3eabc5
@ -30,7 +30,7 @@
|
|||||||
iframe.id = 'main_frame'
|
iframe.id = 'main_frame'
|
||||||
|
|
||||||
if (storage.local.get('lastVersion') === null) {
|
if (storage.local.get('lastVersion') === null) {
|
||||||
iframe.src = '/welcome.html';
|
iframe.src = '/welcome/';
|
||||||
} else if (lastPage !== null) {
|
} else if (lastPage !== null) {
|
||||||
iframe.src = lastPage;
|
iframe.src = lastPage;
|
||||||
} else if (isMobile) {
|
} else if (isMobile) {
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-section">
|
<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" />
|
<input type="checkbox" id="offline-checkbox" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<option value="starfall">Starfall</option>
|
<option value="starfall">Starfall</option>
|
||||||
<option value="campfire">Campfire</option>
|
<option value="campfire">Campfire</option>
|
||||||
</select>
|
</select>
|
||||||
<label for="offline-checkbox">Enable offline:</label>
|
<label for="offline-checkbox">Enable offline use:</label>
|
||||||
<input type="checkbox" id="offline-checkbox" />
|
<input type="checkbox" id="offline-checkbox" />
|
||||||
<button type="submit" class="setup-submit">Submit</button>
|
<button type="submit" class="setup-submit">Submit</button>
|
||||||
</form>
|
</form>
|
@ -38,7 +38,7 @@ if (window.location.pathname === '/settings/') {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.pathname === '/welcome.html') {
|
if (window.location.pathname === '/welcome/') {
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const setupForm = document.getElementById('setup-form') as HTMLFormElement;
|
const setupForm = document.getElementById('setup-form') as HTMLFormElement;
|
||||||
const usernameInput = document.getElementById('username-input') as HTMLInputElement;
|
const usernameInput = document.getElementById('username-input') as HTMLInputElement;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user