Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Refactor IPC message names into a separate file for maintainability #67

Merged
merged 3 commits into from
Dec 19, 2015

Conversation

diracdeltas
Copy link
Member

This makes it easier to look up what message names have been defined and what the message arguments are.

CHECK_FOR_UPDATE: _
}

Object.keys(messages).forEach((k) => messages[k] = k.toLowerCase().replace(/_/g, '-'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice :)

@bbondy
Copy link
Member

bbondy commented Dec 19, 2015

So much cleaner, thanks for doing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants