I have a Web Viewer working perfectly in FMP.
But I soon as I open it with WebDirect, it's not working (blank screen).
So I try to 'Inspect it' to see the error (right click in the Web Viewer and select the last choice in contextual menu).
The error is there but the code is all written on one line (all carriage return removed).
"SyntaxError: Unexpected keyword 'var'. Expected ';' after variable declaration."
This make it impossible to debug (see picture).
I have double check the content of the Web Viewer and all carriage return are OK.
Note: There is not C++ style comment (// ... ), only C style comment (/* ... */) used.