Summary: Currently Flipper.init is called as soon as the script loads. However, if the store takes a bit longer than usual to get rehydrated, then this init call can get called before it has been set. Fixing it by using a specific event instead of the generic `onload`. Reviewed By: passy Differential Revision: D17711399 fbshipit-source-id: fcaf9e5943bfd15359038b8e3722f11d7e06379b
22 lines
607 B
HTML
22 lines
607 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="style.css">
|
|
<link rel="stylesheet" href="graphiql/graphiql.css">
|
|
<link rel="stylesheet" href="vis/vis.min.css">
|
|
<title>Flipper</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script>
|
|
global.electronRequire = window.require;
|
|
</script>
|
|
<script>
|
|
window.addEventListener('flipper-store-ready', () => global.Flipper.init());
|
|
</script>
|
|
<script src="bundle.js"></script>
|
|
</body>
|
|
</html>
|