title: Literally canvas save as png
body: <p>I having problem to save my drawing as PNG using literally canvas, whenever i click the save as png button it only took me to the other tab with "about:blank".</p>
  
  <ul>
  <li><p>button</p>
  
  <pre><code>&lt;button id='save'&gt;Save as PNG&lt;/button&gt;
  </code></pre></li>
  <li><p>canvas</p>
  
  <pre><code> var lc = LC.init(document.getElementsByClassName('my-drawing')[0]   
  </code></pre></li>
  <li><p>save function</p>
  
  <pre><code>  document.getElementById('save').onclick = function(e){
          e.preventDefault();
          window.open(lc.getImage().toDataURL());
             }
  </code></pre></li>
  </ul>