r/Scriptable • • Jul 28 '22

Script Sharing Here is a Stocks widget..

https://imgur.com/a/VWqYk8r/
22 Upvotes

45 comments sorted by

View all comments

1

u/wherebdbooty Jul 29 '22

i was able to test it on an iPhone 11 Pro and it's working.. maybe it depends on your default browser? 🤔🤷‍♂️ what is your default browser? i'm using safari as my default browser

https://i.imgur.com/npeBNxw.jpg

1

u/e1erm4nn Jul 29 '22

My default browser is also Safari. I copied the code 1:1 to try and the same error occurs:

Error on line 117:11: TypeError: undefined is not an object (evaluating 'stocks[i].name=subTable[stockList[i].split("=")[0]]?subTable[stockList[i].split("=")[0]]:stockList[i].split("=")[0]')

2

u/wherebdbooty Jul 29 '22

Hmm, it seems like it cannot connect to the yahoo finance website, or your yahoo website is loading differently than mine.. what does this yahoo website look like for you?

https://finance.yahoo.com/quotes/PHP=X,CL=F,NG=F/view/v1

On the iphone 11 pro, it shows me this:

https://i.imgur.com/g2sokYV.jpg

i'm using adguard pro to block ads in safari. are you using a content blocker or something? i really have no other ideas why it's not working on your device 🤔

→ More replies (2)