fix: avoid invalid Nextcloud browser login flow
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 11s

This commit is contained in:
Kroonk
2026-05-21 22:48:02 +02:00
parent 718d843df2
commit 4bb07122ac
4 changed files with 5 additions and 5 deletions

2
app.js
View File

@@ -62,7 +62,7 @@ function isMobileDevice() {
function getMobileUrl(service) { function getMobileUrl(service) {
if (service.id === 'drive') { if (service.id === 'drive') {
return 'https://drive.mischlabs.de/index.php/login/flow'; return 'nc://';
} }
return service.mobileUrl; return service.mobileUrl;
} }

View File

@@ -117,6 +117,6 @@
</svg> </svg>
</div> </div>
<script src="/app.js?v=28" defer></script> <script src="/app.js?v=29" defer></script>
</body> </body>
</html> </html>

View File

@@ -39,7 +39,7 @@
"description": "Cloud-Speicher", "description": "Cloud-Speicher",
"domain": "drive.mischlabs.de", "domain": "drive.mischlabs.de",
"url": "https://drive.mischlabs.de", "url": "https://drive.mischlabs.de",
"mobileUrl": "https://drive.mischlabs.de/index.php/login/flow", "mobileUrl": "nc://",
"category": "media", "category": "media",
"accent": "#60a5fa", "accent": "#60a5fa",
"icon": "folder", "icon": "folder",

4
sw.js
View File

@@ -1,10 +1,10 @@
const CACHE_NAME = 'mischlabs-pwa-v10'; const CACHE_NAME = 'mischlabs-pwa-v11';
const APP_SHELL = [ const APP_SHELL = [
'/', '/',
'/index.html', '/index.html',
'/offline.html', '/offline.html',
'/style.css?v=27', '/style.css?v=27',
'/app.js?v=28', '/app.js?v=29',
'/services.json?v=1', '/services.json?v=1',
'/manifest.webmanifest?v=3', '/manifest.webmanifest?v=3',
'/icons/icon-192.png', '/icons/icon-192.png',