fix: don't handle browser messages before document element is created (#19722)

* fix: don't handle browser messages before document element is created

* fix: bind ElectronApiServiceImpl later

DidCreateDocumentElement is called before the ElectronApiServiceImpl
gets bound.

* chore: add comment
This commit is contained in:
trop[bot]
2019-08-12 19:34:21 -07:00
committed by Shelley Vohr
parent 3e181b8efc
commit a9f69bf732
5 changed files with 90 additions and 35 deletions

View File

@@ -0,0 +1,9 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
require('fs').readdir(process.cwd(), () => {
require('electron').ipcRenderer.send('async-node-api-done');
})
</script>
</body>
</html>