Skip to content

Commit

Permalink
Add version number to :help
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Aug 31, 2012
1 parent 537900b commit 2058600
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chrome/jsterm.js
Expand Up @@ -77,6 +77,11 @@ let JSTermUI = {
this.content = aContent;
this.chrome = aChrome;

this.version = "meeh";
this.chrome.AddonManager.getAddonByID("jsterm@paulrouget.com", function(addon) {
this.version = addon.version;
}.bind(this));

this.registerCommands();

this.handleKeys = this.handleKeys.bind(this);
Expand Down Expand Up @@ -349,6 +354,8 @@ let JSTermUI = {

help: function() {
let text = "/**";
text += "\n * JSTerm (version " + this.version + ")";
text += "\n * ";
text += "\n * 'Return' to evaluate entry,";
text += "\n * 'Tab' for autocompletion,";
text += "\n * 'Ctrl-l' clear screen,";
Expand Down
Binary file modified jsterm.xpi
Binary file not shown.

0 comments on commit 2058600

Please sign in to comment.