Require Buffer explicitly instead of relying on global

This commit is contained in:
Kevin Sawicki 2016-09-08 10:17:06 -07:00
parent 803943bff8
commit 902bd0564e
5 changed files with 5 additions and 0 deletions

View file

@ -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')