'use strict';

var menubar = require('menubar');
var app = require('app');
var ipc = require('ipc');

var mb = menubar({
  dir: __dirname,
  width: 600,
  height: 480,
  icon: 'Icon.png',
});

mb.on('ready', function ready () {
  console.log('Checkout We Build SG menubar app!');

  ipc.on('event', function(event, arg) {
    if(arg === 'quit') {
      app.quit();
    }
  });
});

@@ -118,26 +118,8 @@
 r(%7B%0A
-  dir: __dirname,%0A
   wi
@@ -163,16 +163,38 @@
 n.png',%0A
+  preloadWindow: true%0A
 %7D);%0A%0Amb.

Remove __dirname and preloadWindow: true