mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 19:37:32 +09:00
10 lines
273 B
JavaScript
10 lines
273 B
JavaScript
|
|
self.addEventListener("message", function(event) {
|
||
|
|
let timeStampCodes = event.data;
|
||
|
|
|
||
|
|
let timeStamps = [];
|
||
|
|
for (let timeStampCode of timeStampCodes) {
|
||
|
|
timeStamps.push(eval(timeStampCode));
|
||
|
|
}
|
||
|
|
// Send the timeStamps to the parent.
|
||
|
|
postMessage(timeStamps);
|
||
|
|
});
|