Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 window.runServiceWorker = function() { | |
| 6 navigator.serviceWorker.register('sw.js').then(function() { | |
| 7 return navigator.serviceWorker.ready; | |
| 8 }).then(function(registration) { | |
| 9 console.log(registration.paymentManager); | |
| 10 return registration.active; | |
| 11 }).then(function(paymentManager) { | |
|
lazyboy
2017/05/15 20:38:44
The param is not a paymentManager, but it is an ac
| |
| 12 window.domAutomationController.send(paymentManager); | |
| 13 }).catch(function(error) { | |
| 14 window.domAutomationController.send(error.name); | |
| 15 }); | |
| 16 }; | |
| OLD | NEW |