You could then attach arbitrary properties to a preload script: preload.js. // preload with contextIsolation disabled window.myAPI = { doAThing: () => {}
確定! 回上一頁