ayastreb/bandwidth-hero

View on GitHub
src/updates/1.1.0.js

Summary

Maintainability
A
0 mins
Test Coverage
/* @flow */
declare var chrome: any
import type { AppState } from '../types'

module.exports = (state: AppState) => {
  if (!state.statistics.bytesProcessed) {
    state.statistics.bytesProcessed = state.statistics.bytesSaved
    chrome.storage.local.set(state)
  }
}