Re:Build an app that uses screen capture in Google Chrome
by icantrank on Thursday October 19, 2017 @06:02PM
(#15511911)
bros... can we use es6 and more in a chrome extension bc it's defo running in chrome? Just a thought from scrolling through this post and spotting some sexy arrow functions which I've been dropping from anything client side
[ Parent
| on HN ]
Re:Build an app that uses screen capture in Google Chrome
by philnash on Friday October 20, 2017 @07:56PM
(#15519896)
That's an interesting question, depends on the support you're expecting.
In this case the desktopCapture API was introduced in Chrome 34 but arrow functions only turned up in version 45 onwards.
You can set a minimum Chrome version in the extension manifest though, which would mean you can set a version that guarantees the JS support that you want.