Skip to content

Commit

Permalink
hotfix: Added dummy process.env to client side.
Browse files Browse the repository at this point in the history
The server-side logger module is currently being loaded into the client side and relies on process.env.
  • Loading branch information
KvelaGorrrrnio committed Dec 13, 2021
1 parent 6158f20 commit 10fceb9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<!-- NB: Various Webpack settings are exposed in the template through the htmlWebpackPlugin object -->
<!-- The title property maps onto whatever title you set in electron-webpack.json. -->
<title>SISYFOS INTELLIGENT AUDIO CONTROLLER</title>
<script>
// This is a temp hack for the server-side logger package
window.process = {
env: {}
}
</script>
</head>
<body>
<div id="root">
Expand All @@ -12,4 +18,4 @@
</div>
<!-- HtmlWebpackPlugin will inject a script tag to load your renderer bundle inside here. -->
</body>
</html>
</html>

0 comments on commit 10fceb9

Please sign in to comment.