Problem: The "Take Photo" button in the Photos of Rex view still displays regardless of whether or not the browser has the capacity to use the underlying mediadevices.getUserMedia API.
Cause: We aren't checking whether or not getUserMedia exists as an API in our photos.js file
Solution: We should create a new port checking for the existence of getUserMedia on UrlChange to "/#photos". We should return a boolean value to Elm which we will pipe directly into the model, and conditionally render using the displayElement helper.
Problem: The "Take Photo" button in the Photos of Rex view still displays regardless of whether or not the browser has the capacity to use the underlying mediadevices.getUserMedia API.
Cause: We aren't checking whether or not getUserMedia exists as an API in our photos.js file
Solution: We should create a new port checking for the existence of getUserMedia on UrlChange to "/#photos". We should return a boolean value to Elm which we will pipe directly into the model, and conditionally render using the displayElement helper.