Unresolved methods/properties
Hi,
I noticed that in WebStorm v2017.1.4 some native methods and properties are marked as unresolved. For example:
- window.navigator.getUserMedia;
- window.URL
- ...
Am I missing something into WebStorm settings? The HTML library is marked under Javascript > Libraries
Please sign in to leave a comment.
1. WebStorm doesn't include predefined libraries for getUserMedia() API
You can download a polyfill from https://github.com/addyosmani/getUserMedia.js/blob/gh-pages/dist/getUserMedia.js and set it up as a JavaScript Library (Settings | Languages & Frameworks | JavaScript | Libraries, Add...)
2. URL API is also not supported (https://youtrack.jetbrains.com/issue/WEB-20762)
A workaround is the same - try setting up polyfill (https://github.com/inexorabletash/polyfill/blob/master/url.js, for example) as a library