A function that is called when save data has finished being stored.
@callback saveDataSetFinished
@param {error} err If defined, err is the error that occurred when saving the data.
 
Store data for later.
@alias Splat.saveData.set
@param {object} data An object containing key-value pairs of data to save.
@param {saveDataSetFinished} callback A callback that is called when the data has finished saving.
function chromeStorageSet(data, callback) {
  window.chrome.storage.sync.set(data, function() {
    callback(window.chrome.runtime.lastError);
  });
}