Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<title>hidden</title>
</head>
<body>
<h1>IPC Example</h1>
<p>hidden window</p>
<script>
@terry2010
terry2010 / index.html
Last active November 1, 2024 05:43
electron-mainWindow-capture
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<video style="display:none;" height="900"></video>
<canvas id="screenshot-canvas" style="display:none"></canvas>
<img id="screenshot-img" style="display:none"/>
</body>