"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "main.js" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

main.js  (Signal-Desktop-1.35.2):main.js  (Signal-Desktop-1.36.1)
skipping to change at line 191 skipping to change at line 191
...parsed, ...parsed,
protocol: parsed.protocol || 'file:', protocol: parsed.protocol || 'file:',
slashes: true, slashes: true,
query: { query: {
name: packageJson.productName, name: packageJson.productName,
locale: locale.name, locale: locale.name,
version: app.getVersion(), version: app.getVersion(),
buildExpiration: config.get('buildExpiration'), buildExpiration: config.get('buildExpiration'),
serverUrl: config.get('serverUrl'), serverUrl: config.get('serverUrl'),
storageUrl: config.get('storageUrl'), storageUrl: config.get('storageUrl'),
directoryUrl: config.get('directoryUrl'),
directoryEnclaveId: config.get('directoryEnclaveId'),
directoryTrustAnchor: config.get('directoryTrustAnchor'),
cdnUrl0: config.get('cdn').get('0'), cdnUrl0: config.get('cdn').get('0'),
cdnUrl2: config.get('cdn').get('2'), cdnUrl2: config.get('cdn').get('2'),
certificateAuthority: config.get('certificateAuthority'), certificateAuthority: config.get('certificateAuthority'),
environment: config.environment, environment: config.environment,
node_version: process.versions.node, node_version: process.versions.node,
hostname: os.hostname(), hostname: os.hostname(),
appInstance: process.env.NODE_APP_INSTANCE, appInstance: process.env.NODE_APP_INSTANCE,
proxyUrl: process.env.HTTPS_PROXY || process.env.https_proxy, proxyUrl: process.env.HTTPS_PROXY || process.env.https_proxy,
contentProxyUrl: config.contentProxyUrl, contentProxyUrl: config.contentProxyUrl,
importMode: importMode ? true : undefined, // for stringify() importMode: importMode ? true : undefined, // for stringify()
skipping to change at line 275 skipping to change at line 278
if (OS === 'win32') { if (OS === 'win32') {
windowIcon = path.join(__dirname, 'build', 'icons', 'win', 'icon.ico'); windowIcon = path.join(__dirname, 'build', 'icons', 'win', 'icon.ico');
} else if (OS === 'linux') { } else if (OS === 'linux') {
windowIcon = path.join(__dirname, 'images', 'signal-logo-desktop-linux.png'); windowIcon = path.join(__dirname, 'images', 'signal-logo-desktop-linux.png');
} else { } else {
windowIcon = path.join(__dirname, 'build', 'icons', 'png', '512x512.png'); windowIcon = path.join(__dirname, 'build', 'icons', 'png', '512x512.png');
} }
async function createWindow() { async function createWindow() {
const { screen } = electron; const { screen } = electron;
const windowOptions = Object.assign( const windowOptions = {
{ show: !startInTray, // allow to start minimised in tray
show: !startInTray, // allow to start minimised in tray width: DEFAULT_WIDTH,
width: DEFAULT_WIDTH, height: DEFAULT_HEIGHT,
height: DEFAULT_HEIGHT, minWidth: MIN_WIDTH,
minWidth: MIN_WIDTH, minHeight: MIN_HEIGHT,
minHeight: MIN_HEIGHT, autoHideMenuBar: false,
autoHideMenuBar: false, backgroundColor:
backgroundColor: config.environment === 'test' || config.environment === 'test-lib'
config.environment === 'test' || config.environment === 'test-lib' ? '#ffffff' // Tests should always be rendered on a white background
? '#ffffff' // Tests should always be rendered on a white background : '#3a76f0',
: '#3a76f0', webPreferences: {
webPreferences: { nodeIntegration: false,
nodeIntegration: false, nodeIntegrationInWorker: false,
nodeIntegrationInWorker: false, contextIsolation: false,
contextIsolation: false, preload: path.join(__dirname, 'preload.js'),
preload: path.join(__dirname, 'preload.js'), nativeWindowOpen: true,
nativeWindowOpen: true, spellcheck: await getSpellCheckSetting(),
spellcheck: await getSpellCheckSetting(), backgroundThrottling: false,
backgroundThrottling: false,
},
icon: windowIcon,
}, },
_.pick(windowConfig, ['autoHideMenuBar', 'width', 'height', 'x', 'y']) icon: windowIcon,
); ..._.pick(windowConfig, ['autoHideMenuBar', 'width', 'height', 'x', 'y']),
};
if (!_.isNumber(windowOptions.width) || windowOptions.width < MIN_WIDTH) { if (!_.isNumber(windowOptions.width) || windowOptions.width < MIN_WIDTH) {
windowOptions.width = DEFAULT_WIDTH; windowOptions.width = DEFAULT_WIDTH;
} }
if (!_.isNumber(windowOptions.height) || windowOptions.height < MIN_HEIGHT) { if (!_.isNumber(windowOptions.height) || windowOptions.height < MIN_HEIGHT) {
windowOptions.height = DEFAULT_HEIGHT; windowOptions.height = DEFAULT_HEIGHT;
} }
if (!_.isBoolean(windowOptions.autoHideMenuBar)) { if (!_.isBoolean(windowOptions.autoHideMenuBar)) {
delete windowOptions.autoHideMenuBar; delete windowOptions.autoHideMenuBar;
} }
skipping to change at line 796 skipping to change at line 797
}); });
debugLogWindow.once('ready-to-show', () => { debugLogWindow.once('ready-to-show', () => {
addDarkOverlay(); addDarkOverlay();
debugLogWindow.show(); debugLogWindow.show();
}); });
} }
let permissionsPopupWindow; let permissionsPopupWindow;
function showPermissionsPopupWindow(forCalling, forCamera) { function showPermissionsPopupWindow(forCalling, forCamera) {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
if (permissionsPopupWindow) { if (permissionsPopupWindow) {
permissionsPopupWindow.show(); permissionsPopupWindow.show();
reject(new Error('Permission window already showing')); reject(new Error('Permission window already showing'));
} }
if (!mainWindow) { if (!mainWindow) {
reject(new Error('No main window')); reject(new Error('No main window'));
} }
const theme = await pify(getDataFromMainWindow)('theme-setting'); const theme = await pify(getDataFromMainWindow)('theme-setting');
 End of changes. 4 change blocks. 
24 lines changed or deleted 26 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)