apps-script-oauth2 icon indicating copy to clipboard operation
apps-script-oauth2 copied to clipboard

Error in doc, closing tab with window.top.close() seams to not working anymore

Open rorp24 opened this issue 3 years ago • 0 comments

Hi, I'm working on a gmail addon and I can't automaticaly close my popup that say that the connexion worked. I tried 2 methods:

  • window.top.close(), which seems to not working anymore in 2021 with the new restriction google chrome put on iframes.
  • google.script.host.close(), which return that it is not a function, and by looking in the google object, it seems like their is no close method.

Can you please update the doc, or even better provide the new method to auto close our popup? Thanks in advance

rorp24 avatar Sep 06 '21 12:09 rorp24