安全性提升:TID动态生成+Streamlit页面排除+工作记忆修复
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
const log_prefix = "ljq_driver: ";
|
||||
|
||||
if (document.querySelector('[data-testid="stApp"],.stApp')) return;
|
||||
|
||||
if (window.self !== window.top) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user