Permalink
Browse files

Add version number to :help

  • Loading branch information...
paulrouget committed Aug 31, 2012
1 parent 537900b commit 205860091a2891aa866d74039e677041ec949652
Showing with 7 additions and 0 deletions.
  1. +7 −0 chrome/jsterm.js
  2. BIN jsterm.xpi
View
@@ -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);
@@ -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,";
View
Binary file not shown.

0 comments on commit 2058600

Please sign in to comment.