feat: iframe postMessage bridge, screenshot SOP, quick start pdf

This commit is contained in:
Liang Jiaqing committed 2026-02-26 14:12:10 +08:00
1 parent 63d9bea9b2
commit 06f7f630e4
4 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@
const log_prefix = "ljq_driver: ";
if (window.self !== window.top) {
console.log(log_prefix + '在iframe中不执行');
window.addEventListener('message',e=>{if(e.data?.type==='ljq_exec'){try{let r=eval(e.data.code);parent.postMessage({type:'ljq_result',id:e.data.id,result:String(r)},'*')}catch(err){parent.postMessage({type:'ljq_result',id:e.data.id,error:err.message},'*')}}});
return;
}