//require('bytenode'); const Ps = require('../../ps'); /** * loadView 生成BrowserWindow的html content */ const loadView = function (opt = {}) { const webSecurity = opt.webSecurity; const src = opt.src; const title = opt.title; const script = opt.script; //const scriptUrl = new URL('eefile://' + src); const scriptUrl = 'eefile://' + src; console.log('[ee-core:job] scriptUrl: ', scriptUrl); // 脚本内容 //const scriptBytenode = Ps.isDev() ? '' : ``; const scriptContent = webSecurity ? `` : ``; // html内容 const htmlContent = (`