Add example and notes on using require in renderer process
+ 7
- 0
@@ -11,4 +11,9 @@
     Chromium <script>document.write(process.versions.chrome)</script>,
     and Electron <script>document.write(process.versions.electron)</script>.
   </body>
+
+  <script>
+    // You can also require other files to run in this process
+    require('renderer.js')
+  </script>
 </html>

@@ -0,0 +1,2 @@
+// This file is required by the index.html file and will
+// be executed in the renderer process for that window.

,"},{"type":"normal","normal":true,"oldLine":12,"newLine":12,"position":2,"content":" and Electron ."},{"type":"normal","normal":true,"oldLine":13,"newLine":13,"position":3,"content":" "},{"type":"add","add":true,"newLine":14,"position":4,"content":"+"},{"type":"add","add":true,"newLine":15,"position":5,"content":"+ "},{"type":"normal","normal":true,"oldLine":14,"newLine":19,"position":9,"content":" "}],"oldStart":11,"oldLines":4,"newStart":11,"newLines":9}],"deletions":0,"additions":5,"index":["0d5a14d..63a952c","100644"]},{"from":"/dev/null","to":"renderer.js","chunks":[{"content":"@@ -0,0 +1,2 @@","changes":[{"type":"add","add":true,"newLine":1,"position":1,"content":"+// This file is required by the index.html file and will"},{"type":"add","add":true,"newLine":2,"position":2,"content":"+// be executed in the renderer process for that window."}],"oldStart":0,"oldLines":0,"newStart":1,"newLines":2}],"deletions":0,"additions":2,"new":true,"index":["0000000..c7b03aa"]}],"themeScheme":"light","orgSlug":"skz","repoSlug":"tox-client","commitHash":"1e287bdb624bb1a62362316994c226ba7d26f6a9"}, "Code$$0": {"code":"@@ -11,4 +11,9 @@\n Chromium ,\n and Electron .\n \n+\n+ \n \n","language":"diff","themeScheme":"light","style":{"borderTopLeftRadius":8,"borderTopRightRadius":8,"borderBottomLeftRadius":8,"borderBottomRightRadius":8}}, "Code$$1": {"code":"@@ -0,0 +1,2 @@\n+// This file is required by the index.html file and will\n+// be executed in the renderer process for that window.\n","language":"diff","themeScheme":"light","style":{"borderTopLeftRadius":8,"borderTopRightRadius":8,"borderBottomLeftRadius":8,"borderBottomRightRadius":8}}, }; function afterRevival(revivalResults) { return undefined; } $IslandsRuntime.reviveIslands(islands, islandsProps, islandsEls) .then(afterRevival) .catch(afterRevival); })(IslandsRuntime);