Show package title in HTML


#1

Hi,
I created my own titlebar in my first electronapp. But I can’t find anything about to print the appname as tile in the titlebar.
I have searched a lot and find nothing about. So I decided to publish my solution here for another who need this:

var appVersion = require('electron').remote.app.getName();
$('.titlebar .title').html(appVersion);

This is for using inside renderer process. Here I use jQuery.

Kind Regrads