From: miker Date: Tue, 26 Oct 2010 20:04:01 +0000 (+0000) Subject: allow openils.XUL to work (and report false for isXUL()) outside xulrunner/firefox X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6e50e067efabf563e021692c5c14794ac4f4fea5;p=evergreen%2Fbjwebb.git 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 --- 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*/} }