Changes of Linux canary v0.0.89

This commit is contained in:
root 2019-07-27 20:11:16 +02:00
parent e2587c01af
commit 194fa49a55
14 changed files with 21 additions and 20 deletions

View file

@ -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;

View file

@ -186,4 +186,4 @@ switch (process.platform) {
}
exports.default = autoUpdater;
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -15,4 +15,4 @@ function installDevTools() {
}
exports.default = installDevTools;
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -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;

View file

@ -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

View file

@ -14,4 +14,4 @@ exports.default = [{
accelerator: 'Command+Q'
}]
}];
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -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;

View file

@ -14,4 +14,4 @@ exports.default = [{
accelerator: 'Control+Q'
}]
}];
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -14,4 +14,4 @@ exports.default = [{
accelerator: 'Alt+F4'
}]
}];
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -90,4 +90,4 @@ class Backoff {
}
}
exports.default = Backoff;
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -26,4 +26,4 @@ class FeatureFlags {
}
}
exports.default = FeatureFlags;
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -68,4 +68,4 @@ class Settings {
}
}
exports.default = Settings;
module.exports = exports['default'];
module.exports = exports.default;

View file

@ -36,11 +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);
process.activateUvLoop();
savedProcess.activateUvLoop();
}
});
// Use electron module after everything is ready.