diff options
author | Gareth Aye <gareth@Gareths-MacBook-Air.local> | 2014-04-09 16:33:35 -0400 |
---|---|---|
committer | Gareth Aye <gaye@mozilla.com> | 2014-04-09 17:06:13 -0400 |
commit | a8bf85aeedc1139b7cfa527ad4c42bb9feee5345 (patch) | |
tree | 7cea8cf23f76e40261198ae0bdb9034c41e12a8a /lib/caldav | |
parent | a1cfcdfcc5acfe9c233267073fe67d24cdee000c (diff) | |
download | jsCalDAV-a8bf85aeedc1139b7cfa527ad4c42bb9feee5345.tar.gz |
Bug 974554 - Followup to fix packaging bug introduced in c197de
Diffstat (limited to 'lib/caldav')
-rw-r--r-- | lib/caldav/connection.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/caldav/connection.js b/lib/caldav/connection.js index 8869571..c3a2588 100644 --- a/lib/caldav/connection.js +++ b/lib/caldav/connection.js @@ -1,7 +1,12 @@ (function(module, ns) { - var Caldav = ns.require('caldav'), - XHR = ns.require('xhr'); + var Caldav; + if (typeof(window) !== 'undefined') { + Caldav = window.Caldav; + } else { + Caldav = ns.require('caldav'); + } + var XHR = ns.require('xhr'); /** * Connection objects contain |