If you were to take a look at the sample code that the apple docs offer they do something like this in the application.js file:
I printed to the console the value of the variable currentDoc and indeed returns the active document.
I double checked that this function is not being declared anywhere else, and it isn't.
However in the tvOS app that I'm working on getActiveDocument() doesn't exists.
What? Why? How?
Code Block function pushPage(page, loading) { var currentDoc = getActiveDocument(); navigationDocument.replaceDocument(page, loading); }
I printed to the console the value of the variable currentDoc and indeed returns the active document.
I double checked that this function is not being declared anywhere else, and it isn't.
However in the tvOS app that I'm working on getActiveDocument() doesn't exists.
What? Why? How?