title: chrome storage sync split error
body: <p>Hello I am currently building a chrome extension that automates a website and on a html page I save the users checkout data using localStorage.</p>
  
  <p>I then realized that you cant call local storage in a content_script
  so what I did was this in the html page where I set and get the local storage.</p>
  
  <p>this is what I use to save the users checkout info in the checkout html page for him to visually see and change when they want to:</p>
  
  <pre><code>var autofill = localStorage.getItem("checkout-info");
  var filler = autofill.split(",");
  $("#name").val(filler[0]);
  $("#email").val(filler[1]);
  $("#tel").val(filler[2]);
  
  chrome.storage.sync.set({'autofiller': autofill}, function() {
  });
  </code></pre>
  
  <p>the .val split is how I keep the data inside the inputs so the user can see it.</p>
  
  <p>the chrome.storage is how I then take the data and call it later in the content_scripts file:</p>
  
  <pre><code>chrome.storage.sync.get(['autofiller'], function() {
  });
  
  checker = autofiller.split(",");
  
  
  alert(checker[1], checker[2]);
  </code></pre>
  
  <p>and for some reason every time the alert part runs no matter what number it is it always alerts all the data not split with the commas.</p>
  
  <p>Which is weird because the split works perfectly in the other file where I use localStorage.</p>
  
  <p>I have also editet the file and tried this aswell:</p>
  
  <pre><code>chrome.storage.sync.set({
      'info0': (filler[0])
      'info1': (filler[1])
      'info2': (filler[2])
      'info3': (filler[3])
      'info4': (filler[4])
      'info5': (filler[5])
      'info6': (filler[6])
      'info7': (filler[7])
      'info8': (filler[8])
      'info9': (filler[9])
      'info10': (filler[10])
      'info11': (filler[11])
      'info12': (filler[12])}, function() {
  });
  </code></pre>
  
  <p>then in the content_scripts file tried this:</p>
  
  <pre><code>chrome.storage.sync.get(['info0', 'info1', 'info2', 'info3','info4','info5','info6','info7', 
      'info8', 'info9', 'info10', 'info11', 'info12'], function() {
  });
  
  
  alert(info0);
  </code></pre>
  
  <p>I also tried doing the set method without the () between the fillers and it also did not work. Can anyone help me Please?</p>
  
  <p>Any advice on why the split isn't working?</p>