fix: Blob URL加载缓存页面——避免DOM操作导致双重渲染

This commit is contained in:
LukeMackin
2026-07-21 19:02:09 +08:00
parent bf72ea937f
commit bfd7bee2ae

View File

@@ -1,9 +1,11 @@
<!DOCTYPE html>
<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){
document.documentElement.innerHTML=b;return
var b=localStorage.getItem('gca_html');
if(b){
var blob=new Blob([b],{type:'text/html'});
location.replace(URL.createObjectURL(blob));
return
}
})();
</script>