title: Can't find variable
body: <p>so as you about to learn, I don't know javascript, but this seems like it should work:</p>
  
  <pre><code>var whitelistURLPartials = ["ae\=Folder","ae\=Item\&amp;t\=IPM\.Note"];
  
  var current = window.location.href;
  
  for (var whitelist in whitelistURLPartials)
  {
      if(current.match(whitelist))
      {
          window.setTimeout(function(){document.location.reload(true)},1000*60);
          break;
      }   
  }
  </code></pre>
  
  <p>but i get <code>6: ReferenceError: Can't find variable: whitelistURLPartials</code></p>
  
  <p>this is in a safari extension if it matters.</p>
  
  <p><strong>EDIT:</strong>
  <br> It seems that Safari was keeping every version of the .js file from every changed version of the extension loaded. I had to restart Safari to clear them.</p>