Zulip-desktop: Use of ES6 Destructuring in index.js

Created on 13 Aug 2017  路  6Comments  路  Source: zulip/zulip-desktop

Can we possibly use ES6 (ES2015) destructuring in index.js for :

const {app} = require('electron');
const ipc = require('electron').ipcMain;

which will prevent requiring electron multiple times as we have already done once at the start, thoughts on this suggestion ?

Most helpful comment

Thanks for the guide @synicalsyntax , getting accustomed with zulip community 馃槃

All 6 comments

Good idea. We should do so.

Thanks for the feedback, @geeeeeeeeek should i send a PR ?

@Anshuman-Verma yeah, go ahead!

@zulipbot claim

Command is @zulipbot claim :)

Thanks for the guide @synicalsyntax , getting accustomed with zulip community 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zingmars picture zingmars  路  11Comments

abhigyank picture abhigyank  路  3Comments

abhigyank picture abhigyank  路  10Comments

andersk picture andersk  路  8Comments

jjst picture jjst  路  12Comments