This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require("electron"); | |
const path = require("path"); | |
function init() { | |
let browserWindow1 = new electron.BrowserWindow({ | |
show: true, | |
x: 500, | |
y: 100, | |
width: 900, | |
height: 900, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require("electron"); | |
const init = () => { | |
let browserWindow = new BrowserWindow({ | |
show: true | |
}); | |
let browserWindow2 = new BrowserWindow({ | |
show: true | |
}); | |
browserWindow.webContents.loadURL("http://www.google.com"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<style> | |
body { | |
position: absolute; | |
top: 0; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require("electron"); | |
const { app, BrowserWindow } = require("electron"); | |
const path = require("path"); | |
const init = () => { | |
let browserWindow = new BrowserWindow({ | |
show: true, | |
webPreferences: { | |
webviewTag: true, | |
nativeWindowOpen: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require("electron"); | |
const { app, BrowserWindow } = require("electron"); | |
const path = require("path"); | |
function init() { | |
let browserWindow = new BrowserWindow({ | |
show: true, | |
webPreferences: { | |
partition: "persist:test-2", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require("electron"); | |
function init() { | |
let browserWindow = new BrowserWindow({ | |
show: true, | |
webPreferences: { | |
partition: "persist:test-2", | |
} | |
}); | |
browserWindow.webContents.on("destroyed", ( ) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require("electron"); | |
const path = require("path"); | |
function init() { | |
let browserWindow1 = new BrowserWindow({ | |
show: true, | |
minWidth: 500, | |
minHeight: 500, | |
webPreferences: { | |
contextIsolation: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require( "electron" ) | |
app.whenReady().then(()=>{ | |
let main = new BrowserWindow({ | |
"height" : 600, | |
"width" : 800 | |
}) | |
main.loadURL( "https://www.youtube.com" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require( "electron" ) | |
app.whenReady().then(()=>{ | |
let main = new BrowserWindow({ | |
"height" : 600, | |
"width" : 1800, | |
x: 100, | |
y: 100, | |
show: false, | |
frame: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1 title="TEST TITLE" onclick="window.test()">Hello World!</h1> | |
</body> |
OlderNewer