(message)
| 176 | |
| 177 | // Function to present an error in a widget |
| 178 | function presentError(message) { |
| 179 | const widget = new ListWidget(); |
| 180 | widget.backgroundColor = Color.black(); |
| 181 | |
| 182 | const text = widget.addText(message); |
| 183 | text.font = new Font("Menlo", 20); |
| 184 | text.centerAlignText(); |
| 185 | text.minimumScaleFactor = 0.8; |
| 186 | text.textColor = Color.red(); |
| 187 | |
| 188 | Script.setWidget(widget); |
| 189 | widget.presentSmall(); |
| 190 | } |
| 191 | |
| 192 | // Function to get the Tildes data |
| 193 | async function getTildesData(query) { |
no test coverage detected