mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 08:34:48 +00:00
.
This commit is contained in:
parent
b0a03d94c8
commit
ab0ea362b9
@ -26,12 +26,13 @@
|
||||
<script>
|
||||
const iframe = document.createElement('iframe');
|
||||
const lastPage = storage.session.get('lastPage');
|
||||
const isMobile = detect.mobile();
|
||||
|
||||
if (storage.local.get('lastVersion') === null) {
|
||||
iframe.src = '/welcome.html';
|
||||
} else if (lastPage !== null) {
|
||||
iframe.src = lastPage;
|
||||
} else if (detect.mobile()) {
|
||||
} else if (isMobile) {
|
||||
iframe.src = '/mobile/';
|
||||
} else {
|
||||
iframe.src = '/home/game/';
|
||||
|
@ -1,19 +1,40 @@
|
||||
{
|
||||
"name": "MineXLauncher",
|
||||
"short_name": "MineX",
|
||||
"description": "Custom launcher for Eaglercraft, which contains many versions and clients.",
|
||||
"id": "/",
|
||||
"start_url": "/",
|
||||
"theme_color": "#333",
|
||||
"background_color": "#333",
|
||||
"orientation": "landscape",
|
||||
"display": "standalone",
|
||||
"display_override": ["fullscreen"],
|
||||
"categories": ["games"],
|
||||
"icons": [
|
||||
{
|
||||
"src": "/resources/images/icons/minexlauncher-192x192.webp",
|
||||
"sizes": "192x192",
|
||||
"src": "/resources/images/icons/minexlauncher.webp",
|
||||
"sizes": "192x192 512x512 2048x2048",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"src": "/resources/images/icons/minexlauncher-512x512.webp",
|
||||
"sizes": "512x512",
|
||||
"type": "image/webp"
|
||||
"src": "/resources/manifest/icons/maskable-2275x2275.webp",
|
||||
"sizes": "192x192 512x512 2275x2275",
|
||||
"type": "image/webp",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#333",
|
||||
"theme_color": "#333"
|
||||
"screenshots": [
|
||||
{
|
||||
"src": "/resources/manifest/screenshots/desktop/later.webp",
|
||||
"sizes": "1280x720",
|
||||
"type": "image/webp",
|
||||
"form_factor": "wide"
|
||||
},
|
||||
{
|
||||
"src": "/resources/manifest/screenshots/mobile/later.webp",
|
||||
"sizes": "1280x720",
|
||||
"type": "image/webp",
|
||||
"form_factor": "narrow"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
BIN
public/resources/manifest/icons/maskable-2275x2275.webp
Normal file
BIN
public/resources/manifest/icons/maskable-2275x2275.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 436 KiB |
@ -260,6 +260,9 @@ const detect = {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
landscape: function () {
|
||||
return window.innerWidth > window.innerHeight;
|
||||
},
|
||||
};
|
||||
|
||||
if (detect.mobile()) {
|
||||
@ -284,7 +287,7 @@ if (window.location.pathname !== '/') {
|
||||
alert(`MineXLauncher has been updated to v${launcherVersion}!
|
||||
|
||||
Changes in v${launcherVersion}:
|
||||
- hello there`);
|
||||
- You can now install MineXLauncher as a PWA web app`);
|
||||
storage.local.set('lastVersion', launcherVersion);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user