mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
use .js extension for require() as a preparation for future migration to ESM
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
const sql = require('./sql');
|
||||
const log = require('./log');
|
||||
const BBranch = require('../becca/entities/bbranch');
|
||||
const entityChangesService = require('./entity_changes');
|
||||
const becca = require('../becca/becca');
|
||||
const sql = require('./sql.js');
|
||||
const log = require('./log.js');
|
||||
const BBranch = require('../becca/entities/bbranch.js');
|
||||
const entityChangesService = require('./entity_changes.js');
|
||||
const becca = require('../becca/becca.js');
|
||||
|
||||
function validateParentChild(parentNoteId, childNoteId, branchId = null) {
|
||||
if (['root', '_hidden', '_share', '_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers'].includes(childNoteId)) {
|
||||
|
||||
Reference in New Issue
Block a user