fix: 用documentElement.innerHTML替换整个页面避免双重渲染+保留JS
This commit is contained in:
Binary file not shown.
@@ -2,8 +2,8 @@
|
|||||||
<html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script>
|
<html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script>
|
||||||
(function(){
|
(function(){
|
||||||
var b=localStorage.getItem('gca_html'),v=localStorage.getItem('gca_ver');
|
var b=localStorage.getItem('gca_html'),v=localStorage.getItem('gca_ver');
|
||||||
if(b&&v&&v!==document.getElementById('ver')?.innerText){
|
if(b&&v){
|
||||||
document.open();document.write(b);document.close();return
|
document.documentElement.innerHTML=b;return
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user