signal-desktop/preload.js

12 lines
279 B
JavaScript
Raw Normal View History

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