walletMain.js 508 B

1234567891011121314151617181920
  1. /**
  2. @module preloader wallet when loaded in the main window
  3. */
  4. require('./dapps.js');
  5. require('./include/openExternal.js');
  6. require('./include/setBasePath')('interface/wallet');
  7. const { webFrame } = require('electron');
  8. // make variables globally accessable
  9. // window.dirname = __dirname;
  10. webFrame.executeJavaScript("window.mistMode = 'wallet';");
  11. setTimeout(() => {
  12. if (document.getElementsByTagName('html')[0]) {
  13. document.getElementsByTagName('html')[0].className = window.platform;
  14. }
  15. }, 500);