mirror of
				https://github.com/notion-enhancer/notion-enhancer.git
				synced 2025-11-04 16:18:08 +11: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 = {
 | 
					const patches = {
 | 
				
			||||||
  "*": async (scriptId, scriptContent) => {
 | 
					  "*": async (scriptId, scriptContent) => {
 | 
				
			||||||
 | 
					    if (scriptId === 'forge.config.js') return scriptContent;
 | 
				
			||||||
    const prevTriggerPattern = /require\(['|"]notion-enhancer['|"]\)/,
 | 
					    const prevTriggerPattern = /require\(['|"]notion-enhancer['|"]\)/,
 | 
				
			||||||
      prevTriggerFound = prevTriggerPattern.test(scriptContent);
 | 
					      prevTriggerFound = prevTriggerPattern.test(scriptContent);
 | 
				
			||||||
    if (prevTriggerFound) return scriptContent;
 | 
					    if (prevTriggerFound) return scriptContent;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user