mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	use .js extension for require() as a preparation for future migration to ESM
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| const ScriptContext = require('./script_context'); | ||||
| const cls = require('./cls'); | ||||
| const log = require('./log'); | ||||
| const becca = require("../becca/becca"); | ||||
| const ScriptContext = require('./script_context.js'); | ||||
| const cls = require('./cls.js'); | ||||
| const log = require('./log.js'); | ||||
| const becca = require('../becca/becca.js'); | ||||
|  | ||||
| function executeNote(note, apiParams) { | ||||
|     if (!note.isJavaScript() || note.getScriptEnv() !== 'backend' || !note.isContentAvailable()) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user