Closed Cologler closed 1 month ago
Cloudflare worker does not allow generating random values in global:
Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.
Remove this line will fix the error:
https://github.com/adamgibbons/ics/blob/9c20e0d3a117ebb408183bad900a950612203568/src/defaults.js#L8
Maybe the defaults can be lazy initialization?
defaults
Fixed by #252
Cloudflare worker does not allow generating random values in global:
Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.
Remove this line will fix the error:
https://github.com/adamgibbons/ics/blob/9c20e0d3a117ebb408183bad900a950612203568/src/defaults.js#L8
Maybe the
defaults
can be lazy initialization?