From a8bf85aeedc1139b7cfa527ad4c42bb9feee5345 Mon Sep 17 00:00:00 2001 From: Gareth Aye Date: Wed, 9 Apr 2014 16:33:35 -0400 Subject: Bug 974554 - Followup to fix packaging bug introduced in c197de --- lib/caldav/connection.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit