refactor: use node scheme imports in spec (#38487)

Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
Milan Burda 2023-06-15 16:42:27 +02:00 committed by GitHub
parent bf1ba4a857
commit d78f37ec8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
105 changed files with 533 additions and 352 deletions

View file

@ -1,7 +1,7 @@
<html>
<body>
<script>
const fs = require('fs');
const fs = require('node:fs');
const { ipcRenderer } = require('electron');
async function readFile(path) {

View file

@ -1,5 +1,5 @@
const { app, BrowserWindow, ipcMain } = require('electron');
const path = require('path');
const path = require('node:path');
app.whenReady().then(() => {
let reloadCount = 0;

View file

@ -2,8 +2,8 @@
<body>
<iframe id="mainframe"></iframe>
<script>
const net = require('net');
const path = require('path');
const net = require('node:net');
const path = require('node:path');
document.getElementById("mainframe").src="./page2.html";

View file

@ -1,6 +1,6 @@
const { app, BrowserWindow } = require('electron');
const net = require('net');
const path = require('path');
const net = require('node:net');
const path = require('node:path');
function createWindow () {
const mainWindow = new BrowserWindow({

View file

@ -1,6 +1,6 @@
const { app, ipcMain, BrowserWindow } = require('electron');
const path = require('path');
const http = require('http');
const path = require('node:path');
const http = require('node:http');
function createWindow () {
const mainWindow = new BrowserWindow({

View file

@ -1,5 +1,5 @@
const { app, BrowserWindow } = require('electron');
const path = require('path');
const path = require('node:path');
app.whenReady().then(() => {
const win = new BrowserWindow({