From: Ardis Lu Date: Fri, 27 Aug 2021 06:00:09 +0000 (-0700) Subject: Replace redundant local .getUi call with global X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=8dd3832cb47342e845342682aec852fb89290cb8;p=sheets-db Replace redundant local .getUi call with global --- diff --git a/Code.gs b/Code.gs index 6316633..4c6ab00 100644 --- 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')