kritts / redirect

A Chrome extension that allows users to easily navigate to saved urls.
13 stars 2 forks source link

Copy keys from local to sync storage on upgrade. #3

Closed srsudar closed 8 years ago

srsudar commented 8 years ago

This PR introduces a versioning mechanism, storing a version string to a '_version' key in sync storage. On upgrade from 1.0.2, all keys are copied from localStorage to chrome.storage.sync and a version key is added to the storage. Assuming the version key is successfully written, this only occurs once and is attempted each time common.js is loaded.