Skip to content

Instantly share code, notes, and snippets.

View albu77's full-sized avatar

Alain BUFERNE albu77

  • clicktoclub
View GitHub Profile
@albu77
albu77 / index.html
Created December 3, 2022 17:45
stackoverflow question 74659131
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>
@albu77
albu77 / main.js
Created October 14, 2022 13:28
Renderers get scrambled with multiple BrowserRenderers scrambled with multiple Browserviews
const { app, BrowserView, BrowserWindow, Menu, ipcMain } = require('electron');
const path = require('path');
let mainWindow;
function createWindows() {
mainWindow = new BrowserWindow({
width: 1000,
height: 700,
webPreferences: {
preload: path.join(__dirname, 'preload.js')