Symptoms
When attempting to run Mobile Web Capture, the following error occurs:
Uncaught TypeError: Cannot read properties of null (reading 'style')
Uncaught TypeError: Cannot read properties of null (reading 'init')
Cause
This error usually occurs if the web-capture.js script is embedded into the <head> element of the HTML page instead of <body>.
Resolution
Check that the following <script> element is placed inside the <body> element:
<script type="text/javascript" src="libs/js/web-capture.js"></script>
If necessary, move this <script> element from <head> into <body>.
Comments
0 comments
Please sign in to leave a comment.