chore: rename nativeRequire to potentiallyRemoteRequire (#15971)

This commit is contained in:
Milan Burda 2018-12-07 03:12:50 +01:00 committed by Jeremy Apthorp
parent 442c1b22e3
commit 177091ca6f
4 changed files with 9 additions and 9 deletions

View file

@ -6,10 +6,10 @@
// Does not implement predefined messages:
// https://developer.chrome.com/extensions/i18n#overview-predefined
const { nativeRequire } = require('@electron/internal/renderer/remote')
const { potentiallyRemoteRequire } = require('@electron/internal/renderer/remote')
const ipcRenderer = require('@electron/internal/renderer/ipc-renderer-internal')
const fs = nativeRequire('fs')
const path = nativeRequire('path')
const fs = potentiallyRemoteRequire('fs')
const path = potentiallyRemoteRequire('path')
let metadata

View file

@ -1,8 +1,8 @@
'use strict'
const { getRemote, nativeRequire } = require('@electron/internal/renderer/remote')
const fs = nativeRequire('fs')
const path = nativeRequire('path')
const { getRemote, potentiallyRemoteRequire } = require('@electron/internal/renderer/remote')
const fs = potentiallyRemoteRequire('fs')
const path = potentiallyRemoteRequire('path')
const app = getRemote('app')
const getChromeStoragePath = (storageType, extensionId) => {