This commit is contained in:
Younes Aassila 2023-12-24 19:09:38 +01:00
parent 27b596e691
commit f09bc1f33b

View File

@ -33,6 +33,7 @@ export function getFetch(options: FetchOptions): typeof fetch {
}
if (options.scope === "page") {
// TODO: Add rate limiting to prevent potential spam by Twitch's client.
self.addEventListener("message", async event => {
if (event.data?.type === MessageType.NewPlaybackAccessToken) {
const newPlaybackAccessToken =