blob: 83d8c2c0881f264fca196f561c239555e1199be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* 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://mozilla.org/MPL/2.0/. */
/**
* ChromeWorker for parseICSAsync method in CalICSService.jsm
*/
/* eslint-env worker */
/* import-globals-from ../modules/Ical.jsm */
// eslint-disable-next-line no-unused-vars
importScripts("resource:///modules/calendar/Ical.jsm");
ICAL.design.strict = false;
self.onmessage = function (event) {
let comp = ICAL.parse(event.data);
postMessage(comp);
self.close();
};
|