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>
|
||||
(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();return
|
||||
if(b&&v){
|
||||
document.documentElement.innerHTML=b;return
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user