Require Buffer explicitly instead of relying on global
This commit is contained in:
parent
803943bff8
commit
902bd0564e
5 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@ const {app, ipcMain, webContents, BrowserWindow} = require('electron')
|
|||
const {getAllWebContents} = process.atomBinding('web_contents')
|
||||
const renderProcessPreferences = process.atomBinding('render_process_preferences').forAllWebContents()
|
||||
|
||||
const {Buffer} = require('buffer')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const url = require('url')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue