From 815feda2b67f3f4aa64584e648eaedf92614895c Mon Sep 17 00:00:00 2001 From: Michael van Ouwerkerk Date: Mon, 15 Dec 2014 17:26:38 +0000 Subject: [PATCH] Rename PushRegistrationManager to PushManager. --- index.html | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 1064de3..97c1818 100644 --- a/index.html +++ b/index.html @@ -312,7 +312,7 @@

// https://example.com/webapp.js navigator.serviceWorker.ready.then(function(serviceWorkerRegistration) { - serviceWorkerRegistration.pushRegistrationManager.register().then( + serviceWorkerRegistration.pushManager.register().then( function(pushRegistration) { console.log(pushRegistration.registrationId); console.log(pushRegistration.endpoint); @@ -419,26 +419,25 @@

- readonly attribute PushRegistrationManager pushRegistrationManager + readonly attribute PushManager pushManager

- The pushRegistrationManager - attribute exposes the PushRegistrationManager for the Service Worker - identified by the ServiceWorkerRegistration. + The pushManager + attribute exposes the PushManager for the Service Worker identified by + the ServiceWorkerRegistration.

- PushRegistrationManager interface + PushManager interface

- The PushRegistrationManager interface defines the operations that enable PushManager interface defines the operations that enable webapps to establish access to push services. Note that just a single push registration is allowed per webapp.

-
+
Promise<PushRegistration> register ()
@@ -451,8 +450,8 @@

The register - method when invoked MUST run the following steps: + "widl-PushManager-register-Promise-PushRegistration">register method when + invoked MUST run the following steps:

  1. Let promise be a new Promise. @@ -505,7 +504,7 @@

    The getRegistration + "widl-PushManager-getRegistration-Promise-PushRegistration">getRegistration method when invoked MUST run the following steps:

      @@ -529,7 +528,7 @@

    The hasPermission + "widl-PushManager-hasPermission-Promise-PushPermissionStatus">hasPermission method when invoked MUST run the following steps: