Can we utilize localStorage
in the HtmlService
of Google Apps Script?
I attempted the code below but encountered an error message stating that localStorage is not defined.
function doGet() {
var ui = HtmlService.createHtmlOutputFromFile('main');
return ui;
}
<!DOCTYPE html>
<html>
<head>
<script>localStorage.setItem('howGood', 'awesome');</script>
</head>
<body>
</body>
</html>