Javascript Device Orientation Api Not Working With Local Webserver

Javascript Device Orientation Api Not Working With Local Webserver