From 328b26b764217d4ee7f5827d69ebb39e5d0676fe Mon Sep 17 00:00:00 2001 From: John Foerch Date: Tue, 29 Sep 2009 22:16:48 -0400 Subject: [PATCH] don't hard-code version into application.js fix http://bugs.conkeror.org/issue193 --- components/application.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/application.js b/components/application.js index f368e90..f17f093 100644 --- a/components/application.js +++ b/components/application.js @@ -134,7 +134,11 @@ application.prototype = { dump(line + "\n"); }, - version: "0.9.1", // preprocessor variable + get version () { + var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"] + .getService(Ci.nsIURLFormatter); + return formatter.formatURL("%VERSION%"); + }, /* nsISupports */ QueryInterface: XPCOMUtils.generateQI([]), -- 2.11.4.GIT