tonesto7 / fordpass-scriptable

FordPass Widget for Scriptable
GNU General Public License v3.0
169 stars 27 forks source link

Exception Occurred Error on line 2208:108 TypeError: null #34

Closed jasperpants closed 2 years ago

jasperpants commented 2 years ago

Exception Occurred Error on line 2208:108 TypeError: null is not an object (evaluating 'windows.driverWindowPosition')

This is with v1.3.2 and a Ford Maverick.

tonesto7 commented 2 years ago

This is interesting... The maverick doesn't seem to keep track of the window position. I have added checks to prevent this error

Please try this version: https://gist.githubusercontent.com/tonesto7/942bda23e3228f16f324bf4e68fec6d2/raw/f526d6d538757f10721cf175fdf3ec5c1dfc6cff/Fordpass%2520Widget.js

jasperpants commented 2 years ago

Thanks, tried the script but it errored for the same object on different line:

Error on line 2214:27: TypeError: null is not an object (evaluating 'windows.driverWindowPosition')

tonesto7 commented 2 years ago

Wow it must not even have the window object... Try this: https://gist.githubusercontent.com/tonesto7/942bda23e3228f16f324bf4e68fec6d2/raw/745a31d896b62e0ec93c18dfa3d8636290660c91/Fordpass%2520Widget.js

jasperpants commented 2 years ago

Yes! That works!!!!