Skip to content

Commit

Permalink
Detect type="module"
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Jul 14, 2020
1 parent dcfe5a6 commit 390a148
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ical/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

/* istanbul ignore next */
/* jshint ignore:start */
if ('noModule' in HTMLScriptElement.prototype) {
window.ICAL = {};
}

if (typeof module === 'object') {
// CommonJS, where exports may be different each time.
ICAL = module.exports;
Expand Down

0 comments on commit 390a148

Please sign in to comment.