Skip to content

Commit

Permalink
Update code.js
Browse files Browse the repository at this point in the history
  • Loading branch information
erickoledadevrel authored May 2, 2022
1 parent f4e052f commit 01eaa38
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,4 @@ function cropToRange(range) {
sheet.deleteColumns(1, firstColumn - 1);
}
sheet.getRange(1, 1, sheet.getMaxRows(), sheet.getMaxColumns()).activate();
showCompleteMessage(spreadsheet);
}

/**
* Shows a message to the user when the cropping is complete.
* @param {SpreadsheetApp.Spreadsheet} spreadsheet The spreadsheet to show the
* message on.
*/
function showCompleteMessage(spreadsheet) {
var title = 'Crop Sheet';
var message = HtmlService.createHtmlOutputFromFile('complete_message')
.getContent();
var timeoutSeconds = 8;
spreadsheet.toast(message, title, timeoutSeconds);
}

0 comments on commit 01eaa38

Please sign in to comment.