Skip to content

Instantly share code, notes, and snippets.

@JJ-8

JJ-8/index.html Secret

Created December 24, 2021 10:22
Show Gist options
  • Save JJ-8/bc3943c30cf4cdc45e29dff7567f8677 to your computer and use it in GitHub Desktop.
Save JJ-8/bc3943c30cf4cdc45e29dff7567f8677 to your computer and use it in GitHub Desktop.
Electron Youtube iframe segementation fault
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<iframe src="https://www.youtube.com/embed/L_LUpnjgPso"></iframe>
</body>
</html>
const {app, BrowserWindow} = require('electron')
app.whenReady().then(() => {
// Code for collecting minidump:
// const { crashReporter } = require('electron')
// console.log(app.getPath('crashDumps'))
// crashReporter.start({ submitURL: '', uploadToServer: false })
const mainWindow = new BrowserWindow()
mainWindow.loadFile('index.html')
})
{
"name": "iframe-segfault-electronjs",
"productName": "iframe-segfault-electronjs",
"description": "My Electron application description",
"keywords": [],
"main": "./main.js",
"version": "1.0.0",
"author": "JJ-8",
"scripts": {
"start": "electron ."
},
"dependencies": {},
"devDependencies": {
"electron": "16.0.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment