import { ipcRenderer } from 'electron-better-ipc' ; import { SVGSymbolsInsert } from './svgsymbolsplugin/helper' ; import { shell , remote , OpenDialogOptions , SaveDialogOptions } from 'electron' ; const currentWindow = remote . getCurrentWindow ( ) ; window [ 'ipc' ] = ipcRenderer ; window [ 'SVGSymbolsInsert' ] = SVGSymbolsInsert ; window [ 'openExternalUrl' ] = ( url ) => shell . openExternal ( url ) ; window [ 'dialog' ] = { showOpenDialog : ( options ) => remote . dialog . showOpenDialog ( currentWindow , options ) , showSaveDialog : ( options ) => remote . dialog . showSaveDialog ( currentWindow , options ) , } ;