Fix: Tagebuch-Foto bei neuem Eintrag — GPS-Fetch bei anhängigen Dateien überspringen (SW by-v875)
This commit is contained in:
parent
b818f85f36
commit
0ab88ef6b6
5 changed files with 14 additions and 12 deletions
|
|
@ -101,9 +101,9 @@
|
|||
</script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=874">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=874">
|
||||
<link rel="stylesheet" href="/css/components.css?v=874">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=875">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=875">
|
||||
<link rel="stylesheet" href="/css/components.css?v=875">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -583,10 +583,10 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=874"></script>
|
||||
<script src="/js/ui.js?v=874"></script>
|
||||
<script src="/js/app.js?v=874"></script>
|
||||
<script src="/js/worlds.js?v=874"></script>
|
||||
<script src="/js/api.js?v=875"></script>
|
||||
<script src="/js/ui.js?v=875"></script>
|
||||
<script src="/js/app.js?v=875"></script>
|
||||
<script src="/js/worlds.js?v=875"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '874'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '875'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||
|
|
|
|||
|
|
@ -1678,9 +1678,11 @@ window.Page_diary = (() => {
|
|||
});
|
||||
|
||||
await UI.asyncButton(submitBtn, async () => {
|
||||
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort
|
||||
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort und OHNE anhängige Dateien.
|
||||
// Wenn Dateien hochzuladen sind, dürfen wir keinen langen await vor dem Upload machen —
|
||||
// iOS macht File-Handles nach längerer Pause ungültig (WebKit-Bug).
|
||||
let _clientWeather = null;
|
||||
if (!isEdit && _locLat == null) {
|
||||
if (!isEdit && _locLat == null && _newFiles.length === 0) {
|
||||
try {
|
||||
const pos = await API.getLocation();
|
||||
const wd = await API.weather.get(pos.lat, pos.lon);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v874';
|
||||
const CACHE_VERSION = 'by-v875';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue