mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-10 15:39:01 +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,
|
||||
db,
|
||||
|
||||
browser: isRenderer ? require('electron').remote.getCurrentWindow() : {},
|
||||
browser: isRenderer ? require('electron').remote?.getCurrentWindow() : {},
|
||||
webFrame: isRenderer ? require('electron').webFrame : {},
|
||||
notionRequire: (path) => require(`../../${path}`),
|
||||
notionPath: (path) => require('path').resolve(`${__dirname}/../../${path}`),
|
||||
|
Loading…
Reference in New Issue
Block a user