MDN self-hosted library · e01.org

storage.StorageChange

StorageChange is an object representing a change to a storage area. Objects of this type are received by storage.onChanged and storage.StorageArea.onChanged event listeners.

no runnable cells webextension-api-type upstream source

StorageChange is an object representing a change to a storage area. Objects of this type are received by storage.onChanged and storage.StorageArea.onChanged event listeners.

Type

StorageChange objects contain the following properties:

  • oldValue
  • : The old value of the item, if there was an old value. This can be any data type.
  • newValue
  • : The new value of the item, if there is a new value. This can be any data type.

Browser compatibility

[!NOTE] This API is based on Chromium's chrome.storage API. This documentation is derived from storage.json in the Chromium code.