forked from kewisch/ical.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.js
20 lines (19 loc) · 775 Bytes
/
module.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http:https://mozilla.org/MPL/2.0/.
* Portions Copyright (C) Philipp Kewisch, 2021 */
/* jshint ignore:start */
var ICAL;
(function() {
/* istanbul ignore next */
if (typeof module === 'object') {
// CommonJS, where exports may be different each time.
ICAL = module.exports;
} else if (typeof HTMLScriptElement !== 'undefined' && 'noModule' in HTMLScriptElement.prototype) {
// Until we use ES6 exports, using <script type="module"> we define ICAL on the window global.
window.ICAL = ICAL = {};
} else if (typeof ICAL !== 'object') {
ICAL = {};
}
})();
/* jshint ignore:end */