From 25620e75b1d15e0d204dffe59b14a322f5b51fad Mon Sep 17 00:00:00 2001
From: Miguel Valenzuela <migpics@gmail.com>
Date: Tue, 13 Jul 2021 18:19:35 +0200
Subject: [PATCH] Update README.md

Chanded DocumentApp to SpreadsheetApp.getUi().showSidebar(page);
This script typically IMO would be used within the Google Sheets app and the DocumentApp.getUi does not work in sheets.
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 46022314..feac5f86 100644
--- a/README.md
+++ b/README.md
@@ -151,7 +151,7 @@ function showSidebar() {
         'Reopen the sidebar when the authorization is complete.');
     template.authorizationUrl = authorizationUrl;
     var page = template.evaluate();
-    DocumentApp.getUi().showSidebar(page);
+    SpreadsheetApp.getUi().showSidebar(page);
   } else {
   // ...
   }