'use strict';

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

let main = remote.getCurrentWindow();

$(function(){
  $('.tools .close').on('click', function(){
    $('.app').addClass('closing');
    setTimeout(function(){
      main.close();
    }, 300);
  });

  $('.tools .maximize').on('click', function(){
    main.maximize();
  });

  $('.tools .minimize').on('click', function(){
    main.minimize();
  });
});

'use strict';

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

let main = remote.getCurrentWindow();

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

Change back to original: Animations should depend on the DE.
Change back to original: Animations should depend on the DE.
