'use strict';

const $ = require('jquery'),
      remote = require('remote');

let main = remote.getCurrentWindow();

$(function(){
  $('.tools > div').on('click', (e) => main[e.target.className]());
});

'use strict';

const $ = require('jquery'),
      remote = require('remote');

let main = remote.getCurrentWindow();

$(function(){
  $('.tools > div').on('click', (e) => main[e.target.className]());

  let toggleMax = () => $('.app').toggleClass('maximized');
  main.on('maximize', toggleMax).on('unmaximize', toggleMax);
});

Add maxmimize and unmaxmize class toggler.
Add maxmimize and unmaxmize class toggler.
