"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spec/fixtures/api/locale-check/main.js" between
electron-11.0.1.tar.gz and electron-11.0.2.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

main.js  (electron-11.0.1):main.js  (electron-11.0.2)
const { app } = require('electron'); const { app } = require('electron');
const locale = process.argv[2].substr(11); const locale = process.argv[2].substr(11);
app.commandLine.appendSwitch('lang', locale); if (locale.length !== 0) {
app.commandLine.appendSwitch('lang', locale);
}
app.whenReady().then(() => { app.whenReady().then(() => {
process.stdout.write(app.getLocale()); if (process.argv[3] === '--print-env') {
process.stdout.write(String(process.env.LC_ALL));
} else {
process.stdout.write(app.getLocale());
}
process.stdout.end(); process.stdout.end();
app.quit(); app.quit();
}); });
 End of changes. 2 change blocks. 
2 lines changed or deleted 8 lines changed or added

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