fix: adjust ical.js to fix import
https://github.com/kewisch/ical.js/issues/329
This commit is contained in:
parent
495fb57675
commit
864a3739b3
|
@ -1,5 +1,4 @@
|
|||
import ICAL from './lib/ical.js';
|
||||
import './lib/ical.timezones.js';
|
||||
import ICAL from './lib/ical.timezones';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import axios from 'axios';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/* jshint ignore:start */
|
||||
if (typeof module === 'object') {
|
||||
// CommonJS, where exports may be different each time.
|
||||
ICAL = module.exports;
|
||||
var ICAL = module.exports;
|
||||
} else if (typeof ICAL !== 'object') {/* istanbul ignore next */
|
||||
/** @ignore */
|
||||
this.ICAL = {};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import ICAL from 'ical.js';
|
||||
import ICAL from '../src/lib/ical.timezones';
|
||||
import fs from 'fs';
|
||||
import axios from 'axios';
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@ NAME:EAT Event
|
|||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
UID:20231108T090000+0300-001@example.com
|
||||
DTSTAMP:20231108T090000+0300
|
||||
DTSTART:20231108T090000+0300
|
||||
DTEND:20231108T100000+0300
|
||||
DTSTAMP:20231101T090000+03:00
|
||||
DTSTART:20231108T090000+03:00
|
||||
DTEND:20231108T100000+03:00
|
||||
SUMMARY:EAT Event
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
Loading…
Reference in New Issue