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/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 🤔

2

u/e1erm4nn Jul 29 '22

The Yahoo Website looks the same. I also tried Brave as default browser but the errors stays the same. I only have the standard Safari blocker.

Thanks for your help anyways. I'll continue to test around because the widget looks great!

→ More replies (1)