title: chrome.storage.sync.set not saving values
body: <p>So I've run into a bit of snag with regards to local storage on Google Chrome. From what I've researched, my syntax seems to be correct, but for some reason the value is not being saved. Here's my code:</p>
  
  <pre><code>chrome.storage.sync.get(accName, function(data) {
      var accData = data[accName];
      // Stuff
      chrome.storage.sync.set({ accName: accData }, function() {
          alert('Data saved');
      });
  });
  </code></pre>
  
  <p>Every time I re-run it, <code>data[accName]</code> returns undefined. I've tried the same code with literal values for the sync.set parameters (eg. <code>{ 'john32': ['fk35kd'] }</code>), and that seems to work, so I'm really confused as to what the issue could be. Any help would be appreciated.</p>