popupWindowsNoWeb3.js 737 B

12345678910111213141516171819202122232425262728
  1. /**
  2. @module preloader PopupWindows
  3. */
  4. require('babel-register');
  5. require('./include/common')('popupWindow');
  6. const { ipcRenderer, remote, webFrame } = require('electron');
  7. const mist = require('./include/mistAPI.js');
  8. const dbSync = require('../dbSync.js');
  9. require('./include/setBasePath')('interface');
  10. require('./include/openExternal.js');
  11. // receive data in from SendData
  12. ipcRenderer.on('uiAction_sendData', (e, data) => {
  13. Session.set('data', data);
  14. });
  15. window.mist = mist();
  16. window.mistMode = remote.getGlobal('mode');
  17. window.dirname = remote.getGlobal('dirname');
  18. window.dbSync = dbSync;
  19. window.ipc = ipcRenderer;
  20. window.i18n = require('../i18n.js');
  21. // Initialise the Redux store
  22. window.store = require('./rendererStore');