WebIDLpedia

InstallEvent interface

Definition

Service Workers Nightly defines InstallEvent



[Exposed=ServiceWorker]
interface InstallEvent : ExtendableEvent {
  constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
  Promise<undefined> addRoutes((RouterRule or sequence<RouterRule>) rules);
};

Methods and attributes that return objects implementing InstallEvent