2017-04-19 22:39:21 +00:00
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
console.log('preload');
|
|
|
|
const electron = require('electron')
|
2017-04-04 20:39:24 +00:00
|
|
|
|
2017-04-19 22:39:21 +00:00
|
|
|
window.config = require('url').parse(window.location.toString(), true).query;
|
2017-04-07 19:58:42 +00:00
|
|
|
|
2017-04-19 22:39:21 +00:00
|
|
|
const ipc = electron.ipcRenderer
|
|
|
|
window.config.locale_json = ipc.sendSync('locale-data');
|
2017-04-04 06:32:46 +00:00
|
|
|
|
2017-04-19 22:39:21 +00:00
|
|
|
})();
|