diff --git a/packages/client-android/android/app/src/main/assets/index.html b/packages/client-android/android/app/src/main/assets/index.html index f637327..31169d3 100644 --- a/packages/client-android/android/app/src/main/assets/index.html +++ b/packages/client-android/android/app/src/main/assets/index.html @@ -45,7 +45,10 @@ function applyUpdate(){ (function(){ var b=localStorage.getItem('gca_html'),v=localStorage.getItem('gca_ver'); if(b&&v&&v!==document.getElementById('ver').innerText){ - document.open();document.write(b);document.close() + // Show badge but don't rewrite page (avoids double-render) + var el=document.createElement('span');el.className='badge';el.style.cssText='background:#22c55e;color:#000'; + el.innerText='CACHED v'+v.replace('0.1.0-dav-android-','');document.querySelector('h1').appendChild(el); + document.getElementById('ver').innerText=v } })();