diff --git a/packages/local-sync/src/message-processor/index.js b/packages/local-sync/src/message-processor/index.js index f374dc179..18aa3efa2 100644 --- a/packages/local-sync/src/message-processor/index.js +++ b/packages/local-sync/src/message-processor/index.js @@ -26,6 +26,7 @@ class MessageProcessor { this._currentChunkStart = Date.now(); this._isBatteryCharging = true; navigator.getBattery().then((battery) => { + this._isBatteryCharging = battery.charging; battery.addEventListener('chargingchange', () => { console.info('charge change', battery.charging); this._isBatteryCharging = battery.charging