Skip to content

Commit

Permalink
Updated deprecated ipc module and using newer version of Electron
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesdemey committed Feb 28, 2016
1 parent 936bc59 commit 4890db1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function(grunt) {
dir : '.',
out : 'dist',
icon : 'cumulus.icns',
version : '0.34.0',
version : '0.36.9',
platform : 'darwin',
arch : 'x64',
// ignore : 'node_modules/',
Expand Down
6 changes: 4 additions & 2 deletions app/js/actions/actionCreators.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
'use strict';

var ipc = window.require('electron').ipcRenderer

var McFly = require('../utils/mcfly')
var SoundCloud = require('../utils/soundcloud')

var CurrenTrackStore = require('../stores/currentTrackStore')

var actions

window.require('ipc').on('GlobalShortcuts', function(accelerator) {
ipc.on('GlobalShortcuts', function(sender, accelerator) {
switch (accelerator) {

case 'MediaPlayPause':
Expand All @@ -29,7 +31,7 @@ window.require('ipc').on('GlobalShortcuts', function(accelerator) {

})

window.require('ipc').on('WindowEvent', function(name) {
ipc.on('WindowEvent', function(name) {
switch (name) {
case 'focus':
actions.sendWindowFocus()
Expand Down

0 comments on commit 4890db1

Please sign in to comment.