From 6e50e067efabf563e021692c5c14794ac4f4fea5 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 26 Oct 2010 20:04:01 +0000 Subject: [PATCH] allow openils.XUL to work (and report false for isXUL()) outside xulrunner/firefox git-svn-id: svn://svn.open-ils.org/ILS/trunk@18478 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/XUL.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/XUL.js b/Open-ILS/web/js/dojo/openils/XUL.js index 00dfdc52b..ec1e765e4 100644 --- a/Open-ILS/web/js/dojo/openils/XUL.js +++ b/Open-ILS/web/js/dojo/openils/XUL.js @@ -8,6 +8,7 @@ if(!dojo._hasResource["openils.XUL"]) { return Boolean(dojo.cookie('xul')) || Boolean(window.IAMXUL); } + try { openils.XUL.buildId = function() { return window.XUL_BUILD_ID || ''; } @@ -155,4 +156,5 @@ if(!dojo._hasResource["openils.XUL"]) { return 0; } }; + }catch (e) {/*meh*/} } -- 2.11.0