I'm having some issues opening itchpad from the menu item.  First thing I notice is that it should probably do this instead of returning win

    if (win.name === windowName) {
      deferred.resolve(win);
      return deferred.promise;
    }