refactor: re-implement desktop-capturer in TypeScript (#18580)

This commit is contained in:
Milan Burda 2019-06-15 12:44:18 +02:00 committed by Cheng Zhao
parent 4ef8de69ef
commit 370e9522b4
9 changed files with 127 additions and 144 deletions

View file

@ -4,7 +4,7 @@ const moduleList = require('@electron/internal/sandboxed_renderer/api/module-lis
const handleESModule = (m) => {
// Handle Typescript modules with an "export default X" statement
if (m.__esModule) return m.default
if (m.__esModule && m.default) return m.default
return m
}