Add Electron & Setup Github Actions

This commit is contained in:
2026-05-17 19:44:15 +02:00
parent 746a83de6e
commit 7e2c27d165
80 changed files with 3653 additions and 2 deletions
+7 -2
View File
@@ -360,12 +360,17 @@ document.addEventListener('DOMContentLoaded', () => {
});
const isMobile = window.innerWidth <= 768 || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
const isElectron = navigator.userAgent.toLowerCase().includes('electron');
if (isMobile) {
if (isMobile || isElectron) {
const iframes = document.querySelectorAll('iframe');
iframes.forEach(iframe => {
const fallback = document.createElement('div');
fallback.textContent = "functionality not available on mobile devices";
if (isElectron) {
fallback.textContent = "3D models are not compatible on the desktop app";
} else {
fallback.textContent = "functionality not available on mobile devices";
}
fallback.style.display = "flex";
fallback.style.alignItems = "center";
fallback.style.justifyContent = "center";