ayastreb/bandwidth-hero

View on GitHub
src/update.js

Summary

Maintainability
A
0 mins
Test Coverage
chrome.runtime.onInstalled.addListener(({ reason, previousVersion }) => {
  if (reason === 'update') {
    chrome.storage.local.get(storedState => {
      try {
        require(`./updates/${previousVersion}.js`)(storedState)
      } catch (e) {}
    })
  }
})