title: Ignored call to 'print()'. The document is sandboxed, and the 'allow-modals' keyword is not set Google App Script
body: <p>I need to make window.print (), this worked correctly until yesterday, now it throws me an error in my browser console:</p>
  
  <pre><code>Ignored call to 'print()'. The document is sandboxed, and the 'allow-modals' keyword is not set
  </code></pre>
  
  <p><strong>Google App Script  and Google Site</strong></p>
  
  <p>Mi code:</p>
  
  <pre><code>&lt;button onclick=" window.print()"&gt;Print&lt;/button&gt;
  
  
  function doGet() {
  
   var output= HtmlService.createTemplateFromFile('index')
        .evaluate().setSandboxMode(HtmlService.SandboxMode.IFRAME).addMetaTag("viewport", "width=device-width,height=device-height,initial-scale=1,user-scalable=no").addMetaTag("mobile-web-app-capable", "yes").setTitle("Reforzados")
  return output;
  }
  </code></pre>
  
  <p>Who could give me a scope of the possible solution, thanks</p>