Worker APIs should use
self
I think
self
was chosen because there's nowindow
, butglobalThis
should still be preferred there I think.
- Service workers introduction: 2014
globalThis
introduction: 2019I think using
self
in service workers is more of a historical artifact rather than a necessity.
Originally posted by @fregante in #2410 (comment)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too