Skip to content

Instantly share code, notes, and snippets.

@KazuyaHayashi
Created April 23, 2022 06:27
Show Gist options
  • Save KazuyaHayashi/0aa4ae76034daf6d023b61fca22093cb to your computer and use it in GitHub Desktop.
Save KazuyaHayashi/0aa4ae76034daf6d023b61fca22093cb to your computer and use it in GitHub Desktop.
Electron video issue on Udemy
const { app, BrowserWindow } = require('electron')
const path = require('path')
function createWindow () {
const win = new BrowserWindow({
width: 800,
height: 600,
})
win.loadURL("https://www.udemy.com/course/fearless-public-speaker-bootcamp-by-ricky-mendoza/");
}
app.whenReady().then(() => {
createWindow()
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow()
}
})
})
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
{
"name": "electron_issue_udamy",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"electron": "^18.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment