]> git.ardis.lu - sheets-db/commitdiff
Replace redundant local .getUi call with global
authorArdis Lu <ardisglu@gmail.com>
Fri, 27 Aug 2021 06:00:09 +0000 (23:00 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 27 Aug 2021 06:00:09 +0000 (23:00 -0700)
Code.gs

diff --git a/Code.gs b/Code.gs
index 6316633665d74024621d76e24365f171180d94d6..4c6ab00a0ab995a037df6f0535748a19da3fe65f 100644 (file)
--- a/Code.gs
+++ b/Code.gs
@@ -6,8 +6,7 @@ const BACKBLAZE_ID = PropertiesService.getScriptProperties().getProperty('BACKBL
 const BACKBLAZE_KEY = PropertiesService.getScriptProperties().getProperty('BACKBLAZE_KEY');
 
 function onOpen() {
-  const ui = SpreadsheetApp.getUi();
-  ui.createMenu('SQLite')
+  UI.createMenu('SQLite')
     .addItem('Help', 'showHelp')
     .addItem('Generate SQLite database query', 'generateDatabaseQuery')
     .addItem('Upload to Backblaze', 'uploadToBackblaze')
This page took 0.030697 seconds and 4 git commands to generate.