title: Get data from localStorage (google script)
body: <p>In my app for google spreadsheet I save some params in localStorage in one function. And in another function I need to retrieve them. Of course, I can create modeless dialog or sidebar, when will be my html code and js, but this second function only refresh current sheet, so I don't need UI. Also I know, that server side doesn't have access to localStorage.
  Here is my abstract code:</p>
  
  <p><code>server.gs</code><strong>:</strong></p>
  
  <pre><code>function menuItemClicked()
  {
      // when we click on item in addon menu, this called
      // and load 'client.html'
  }
  
  function refreshCurrentSheet(params)
  {
      // called by 'client.html'
      // do something else with params...
  }
  </code></pre>
  
  <p><code>client.html</code><strong>:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      google.script.run.refreshCurrentSheet( localStorage.getItem('var') );
  &lt;/script&gt;
  </code></pre>
  
  <p>I didn't find answer in API, how to do that(</p>
  
  <p><strong>Question:</strong> how can I load html and execute js without visible UI ?</p>
  
  <p>P.S. Saving these params on server-side in cache is not a solution, because I often use and change them in client</p>