This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-blue; icon-glyph: book; share-sheet-inputs: plain-text; | |
// Stock Ticker Widget | |
let locale = Device.locale().replace("_","-"); | |
let stocksInfo = await getStockData() | |
let widget = await createWidget() | |
if (config.runsInWidget) { | |
// The script runs inside a widget, so we pass our instance of ListWidget to be shown inside the widget on the Home Screen. |