mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-04 12:49:03 +00:00
chore: don't patch forge.config.js (may be useful for notion-repackaged?)
This commit is contained in:
parent
9a1b35afd9
commit
e762e68f7f
@ -9,6 +9,7 @@ const replaceIfNotFound = (string, search, replacement) =>
|
||||
|
||||
const patches = {
|
||||
"*": async (scriptId, scriptContent) => {
|
||||
if (scriptId === 'forge.config.js') return scriptContent;
|
||||
const prevTriggerPattern = /require\(['|"]notion-enhancer['|"]\)/,
|
||||
prevTriggerFound = prevTriggerPattern.test(scriptContent);
|
||||
if (prevTriggerFound) return scriptContent;
|
||||
|
Loading…
Reference in New Issue
Block a user