allow openils.XUL to work (and report false for isXUL()) outside xulrunner/firefox
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Oct 2010 20:04:01 +0000 (20:04 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 Oct 2010 20:04:01 +0000 (20:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18478 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/XUL.js

index 00dfdc5..ec1e765 100644 (file)
@@ -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*/}
 }