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

Commit

Permalink
Reved package version and fixed minor bugs (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbreza authored Feb 2, 2019
1 parent 39fb38b commit 4dbbfa0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vott-react-typescript",
"version": "0.1.0",
"version": "2.0.0-preview.1",
"private": true,
"main": "build/main.js",
"dependencies": {
Expand Down
3 changes: 0 additions & 3 deletions src/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ function createWindow() {
mainWindow.loadFile("build/index.html");
}

// Open the DevTools.
mainWindow.webContents.openDevTools();

// Emitted when the window is closed.
mainWindow.on("closed", () => {
// Dereference the window object, usually you would store windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class KeyboardRegistrationManager {
* @param handler The keyboard event handler
*/
public addHandler(keyCode: string, handler: KeyboardEventHandler): () => void {
Guard.emtpy(keyCode);
Guard.null(keyCode);
Guard.null(handler);

let keyRegistrations: KeyboardEventHandler[] = this.registrations[keyCode];
Expand All @@ -46,7 +46,7 @@ export class KeyboardRegistrationManager {
* @param keyCode The key code combination, ex) Ctrl+1
*/
public getHandlers(keyCode: string) {
Guard.emtpy(keyCode);
Guard.null(keyCode);

const registrations = this.registrations[keyCode];
return registrations ? [...registrations] : [];
Expand All @@ -58,7 +58,7 @@ export class KeyboardRegistrationManager {
* @param evt The keyboard event that was raised
*/
public invokeHandlers(keyCode: string, evt: KeyboardEvent) {
Guard.emtpy(keyCode);
Guard.null(keyCode);
Guard.null(evt);

const handlers = this.getHandlers(keyCode);
Expand Down

0 comments on commit 4dbbfa0

Please sign in to comment.