mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-18 02:39:03 +00:00
Fix error on Notion 2.0.22
This commit is contained in:
parent
5fd7daec9c
commit
3fc755230a
@ -134,7 +134,7 @@ globalThis.__enhancerElectronApi = {
|
|||||||
version: require('notion-enhancer/package.json').version,
|
version: require('notion-enhancer/package.json').version,
|
||||||
db,
|
db,
|
||||||
|
|
||||||
browser: isRenderer ? require('electron').remote.getCurrentWindow() : {},
|
browser: isRenderer ? require('electron').remote?.getCurrentWindow() : {},
|
||||||
webFrame: isRenderer ? require('electron').webFrame : {},
|
webFrame: isRenderer ? require('electron').webFrame : {},
|
||||||
notionRequire: (path) => require(`../../${path}`),
|
notionRequire: (path) => require(`../../${path}`),
|
||||||
notionPath: (path) => require('path').resolve(`${__dirname}/../../${path}`),
|
notionPath: (path) => require('path').resolve(`${__dirname}/../../${path}`),
|
||||||
|
Loading…
Reference in New Issue
Block a user