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
{ | |
"master": { | |
"electron": "30.0.0-beta.8", | |
"chromium": "124.0.6367.29", | |
"date": "2024-04-18" | |
}, | |
"4.38.115": { | |
"electron": "30.0.0", | |
"chromium": "124.0.6367.49", | |
"date": "2024-04-17" |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Color Change Boxes</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>BrowserView Demo</title> | |
</head> | |
<body> | |
<h1>BrowserView Demo</h1> | |
<button>Toggle BrowserView</button> |
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
// Modules to control application life and create native browser window | |
const { app, BrowserWindow } = require('electron') | |
const childProcess = require('child_process') | |
async function createWindow () { | |
childProcess.execSync('osascript -e \'tell application "Finder" to activate\''); | |
// Create new window | |
w = new BrowserWindow({ | |
type: 'panel', |
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 lang="en"> | |
<head> | |
<title>Hi</title> | |
</head> | |
<body> | |
<video></video> | |
<script> | |
require('./renderer.js') | |
</script> |
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 url = new URL('https://api.tidesandcurrents.noaa.gov/api/prod/datagetter'); | |
url.search = new URLSearchParams({ | |
station: '9414290', | |
product: 'water_temperature', | |
time_zone: 'lst', | |
units: 'english', | |
date: 'today', | |
application: 'GGTC', | |
format: 'json' | |
}).toString(); |
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
// Open up the Slack Developer Tools by entering "/slackdevtools" | |
// in the message input. | |
// First, run this. The client will reload. | |
slackDebug.enable() | |
// Then, get channels. See "filterChannels" to remove channels | |
// beginning with a certain prefix. | |
(function getMyChannels() { | |
const allChannels = slackDebug.storeInstance.getStateByTeamId(slackDebug.activeTeamId).channels.__proto__ |
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> | |
<link rel="stylesheet" type="text/css" href="./styles.css"> | |
</head> | |
<body> | |
<script> | |
// You can also require other files to run in this process |
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>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> | |
We are using Node.js <script>document.write(process.versions.node)</script>, |
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"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src https://js.stripe.com 'self'; connect-src https://api.stripe.com; frame-src https://js.stripe.com https://hooks.stripe.com"> | |
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src https://js.stripe.com 'self'; connect-src https://api.stripe.com; frame-src https://js.stripe.com https://hooks.stripe.com"> | |
<title>Hello World!</title> | |
<script src="https://js.stripe.com/v3" async></script> | |
</head> |
NewerOlder