docs: Update represented-file fiddle tutorial (#29245)
* Update represented-file fiddle. * add index and code back to guide Co-authored-by: Ethan Arrowood <ethan.arrowood@gmail.com>
This commit is contained in:
parent
56ac67e059
commit
3e2ec0e2ce
4 changed files with 28 additions and 13 deletions
|
@ -4,13 +4,14 @@
|
|||
<meta charset="UTF-8">
|
||||
<title>Hello World!</title>
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
|
||||
<link rel="stylesheet" type="text/css" href="./styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World!</h1>
|
||||
<p>
|
||||
We are using node <script>document.write(process.versions.node)</script>,
|
||||
Chrome <script>document.write(process.versions.chrome)</script>,
|
||||
and Electron <script>document.write(process.versions.electron)</script>.
|
||||
Click on the title with the <pre>Command</pre> or <pre>Control</pre> key pressed.
|
||||
You should see a popup with the represented file at the top.
|
||||
</p>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,10 +4,7 @@ const os = require('os');
|
|||
function createWindow () {
|
||||
const win = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
nodeIntegration: true
|
||||
}
|
||||
height: 600
|
||||
})
|
||||
|
||||
win.loadFile('index.html')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue