bep40 commited on
Commit
97698d4
·
verified ·
1 Parent(s): 9ba3b39

Bump app_v2.js cache version to force refresh after rewriteUrl fix

Browse files
Files changed (1) hide show
  1. static/index_v2.html +1 -2
static/index_v2.html CHANGED
@@ -41,7 +41,6 @@ function doShare(title,url,img,postId){
41
  } else {
42
  shareUrl = SPACE+'/s?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title)+'&img='+encodeURIComponent(img||'');
43
  }
44
- // Use clipboard API first (modern, works on Chrome mobile 85+)
45
  if(navigator.clipboard && navigator.clipboard.writeText){
46
  navigator.clipboard.writeText(shareUrl).then(function(){
47
  toast('📋 Đã sao chép link!');
@@ -68,7 +67,7 @@ function doShare(title,url,img,postId){
68
  async function init(){_cats=await fetch('/api/categories').then(r=>r.json()).catch(()=>[]);let bar='<div class="cat active" data-cat="home">🏠</div><div class="cat" data-cat="news-all">📰 Tin tức</div>';_cats.forEach(c=>{bar+='<div class="cat" data-cat="'+c.id+'">'+c.name+'</div>'});document.getElementById('cat-bar').innerHTML=bar;document.querySelectorAll('.cat').forEach(t=>{t.onclick=()=>switchCat(t.dataset.cat)});}
69
  var SPACE=location.origin;
70
  </script>
71
- <script src="/static/app_v2.js?v=20260711"></script>
72
  <script src="/static/yt_live.js"></script>
73
  <script src="/static/vtv_init.js"></script>
74
  <script src="/static/hot_multi.js?v=1"></script>
 
41
  } else {
42
  shareUrl = SPACE+'/s?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(title)+'&img='+encodeURIComponent(img||'');
43
  }
 
44
  if(navigator.clipboard && navigator.clipboard.writeText){
45
  navigator.clipboard.writeText(shareUrl).then(function(){
46
  toast('📋 Đã sao chép link!');
 
67
  async function init(){_cats=await fetch('/api/categories').then(r=>r.json()).catch(()=>[]);let bar='<div class="cat active" data-cat="home">🏠</div><div class="cat" data-cat="news-all">📰 Tin tức</div>';_cats.forEach(c=>{bar+='<div class="cat" data-cat="'+c.id+'">'+c.name+'</div>'});document.getElementById('cat-bar').innerHTML=bar;document.querySelectorAll('.cat').forEach(t=>{t.onclick=()=>switchCat(t.dataset.cat)});}
68
  var SPACE=location.origin;
69
  </script>
70
+ <script src="/static/app_v2.js?v=20260714"></script>
71
  <script src="/static/yt_live.js"></script>
72
  <script src="/static/vtv_init.js"></script>
73
  <script src="/static/hot_multi.js?v=1"></script>