drill.init(async e=>{let{remote:o,ipcRenderer:t}=require("electron");const{BrowserWindow:a,BrowserView:i,dialog:r}=o;require("path");let[n,l]=await e("util/create","util/open"),{history:c}=await e("common/data");$("#addBtn").on("click",async e=>{let o=r.showSaveDialog();o&&await n.createPage(o)}),$("#openBtn").on("click",async e=>{let o=r.showOpenDialog({properties:["openDirectory"]});o&&o[0]&&(l.openPage(o[0]),console.log(o))})});