Changes of Linux development v0.0.66
This commit is contained in:
parent
9c1fb531c7
commit
e2587c01af
14 changed files with 21 additions and 19 deletions
|
@ -13,4 +13,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|||
const buildInfo = require(_path2.default.join(process.resourcesPath, 'build_info.json'));
|
||||
|
||||
exports.default = buildInfo;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -186,4 +186,4 @@ switch (process.platform) {
|
|||
}
|
||||
|
||||
exports.default = autoUpdater;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -15,4 +15,4 @@ function installDevTools() {
|
|||
}
|
||||
|
||||
exports.default = installDevTools;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -10,4 +10,4 @@ exports.default = {
|
|||
on: (event, callback) => _electron.ipcMain.on(`DISCORD_${event}`, callback),
|
||||
removeListener: (event, callback) => _electron.ipcMain.removeListener(`DISCORD_${event}`, callback)
|
||||
};
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -113,4 +113,4 @@ for (const method of ['get']) {
|
|||
}
|
||||
|
||||
exports.default = requestWithMethod;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
File diff suppressed because one or more lines are too long
|
@ -14,4 +14,4 @@ exports.default = [{
|
|||
accelerator: 'Command+Q'
|
||||
}]
|
||||
}];
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -9,4 +9,4 @@ var _electron = require('electron');
|
|||
const menu = require('./' + process.platform);
|
||||
|
||||
exports.default = _electron.Menu.buildFromTemplate(menu);
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -14,4 +14,4 @@ exports.default = [{
|
|||
accelerator: 'Control+Q'
|
||||
}]
|
||||
}];
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -14,4 +14,4 @@ exports.default = [{
|
|||
accelerator: 'Alt+F4'
|
||||
}]
|
||||
}];
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -90,4 +90,4 @@ class Backoff {
|
|||
}
|
||||
}
|
||||
exports.default = Backoff;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -26,4 +26,4 @@ class FeatureFlags {
|
|||
}
|
||||
}
|
||||
exports.default = FeatureFlags;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -68,4 +68,4 @@ class Settings {
|
|||
}
|
||||
}
|
||||
exports.default = Settings;
|
||||
module.exports = exports['default'];
|
||||
module.exports = exports.default;
|
|
@ -36,10 +36,12 @@ const ipcEmitter = new events_1.EventEmitter();
|
|||
const ipcInternalEmitter = new events_1.EventEmitter();
|
||||
v8Util.setHiddenValue(global, 'ipc', ipcEmitter);
|
||||
v8Util.setHiddenValue(global, 'ipc-internal', ipcInternalEmitter);
|
||||
const savedProcess = process;
|
||||
v8Util.setHiddenValue(global, 'ipcNative', {
|
||||
onMessage(internal, channel, args, senderId) {
|
||||
const sender = internal ? ipcInternalEmitter : ipcEmitter;
|
||||
sender.emit(channel, { sender, senderId }, ...args);
|
||||
savedProcess.activateUvLoop();
|
||||
}
|
||||
});
|
||||
// Use electron module after everything is ready.
|
||||
|
|
Loading…
Reference in a new issue