You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
"Global addEventListener() cannot be used in modules. Instead, event "+
275
-
"handlers should be declared as exports on the root module."
280
+
if(this.#modules &&isSpecialEventType(type)){
281
+
returnthis.#log.warn(
282
+
`When using module syntax, the '${type}' event handler should be declared as an exported function on the root module as opposed to using the global addEventListener().`
276
283
);
277
284
}
278
285
@@ -295,12 +302,7 @@ export class ServiceWorkerGlobalScope extends WorkerGlobalScope {
`When using module syntax, the '${type}' event handler should be declared as an exported function on the root module as opposed to using the global addEventListener().`;
0 commit comments