@yakies/electron-ipc
Version:
A easier way to use Electron's contextBridge API
24 lines • 1.01 kB
HTML
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'unsafe-inline'; img-src 'self'; child-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com; font-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com;">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../../../../../node_modules/materialize-css/dist/css/materialize.min.css" rel="stylesheet" media="screen,projection">
<title>Bridge Sample</title>
<style>
body {
box-sizing: border-box;
margin: 0;
padding: 20px;
font-family: sans-serif;
background-color: #eaeaea;
text-align: center;
}
</style>
</head>
<body>
<h2 id="name"></h2>
<h4 id="version"></h4>
<button id="btn">Send Message</button>
<script >var exports = {};</script>
<script type="module" src="./code-behind.js"></script>
</body>