3 ms·
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 arr
by icantrank 9y ago
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
- philnash 9y agoThat'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.