I'm trying to use my garage door's remote server website in order to open my garage from my iPhone. The website's javascript has a function GarageDoor(), where if I type GarageDoor(1) into the Google Chrome console the garage door will open.
I'm using the ios Shortcuts app with the 'run Javascript on Webpage' feature. I have the following code:
GarageDoor(1);
completion(result);
If I type this, I only get the response "ReferenceError: Can't find variable: GarageDoor". How do I access the website's GarageDoor() function?
Cheers