Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add version number to :help

  • Loading branch information...
commit 205860091a2891aa866d74039e677041ec949652 1 parent 537900b
@paulrouget authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 chrome/jsterm.js
  2. BIN  jsterm.xpi
View
7 chrome/jsterm.js
@@ -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
BIN  jsterm.xpi
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.