| Index: modules/battery/NavigatorBattery.idl
|
| diff --git a/modules/serviceworkers/NavigatorServiceWorker.idl b/modules/battery/NavigatorBattery.idl
|
| similarity index 68%
|
| copy from modules/serviceworkers/NavigatorServiceWorker.idl
|
| copy to modules/battery/NavigatorBattery.idl
|
| index 1f5335479cf79598fd1ce37f85c492eca124fe71..c5bff09da1473e835b8de2b1f59997117385b2c6 100644
|
| --- a/modules/serviceworkers/NavigatorServiceWorker.idl
|
| +++ b/modules/battery/NavigatorBattery.idl
|
| @@ -3,7 +3,8 @@
|
| // found in the LICENSE file.
|
|
|
| [
|
| - RuntimeEnabled=ServiceWorker,
|
| + RuntimeEnabled=BatteryStatus,
|
| ] partial interface Navigator {
|
| - readonly attribute ServiceWorkerContainer serviceWorker;
|
| + [CallWith=ScriptState] Promise getBattery();
|
| };
|
| +
|
|
|