mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
use .js extension for require() as a preparation for future migration to ESM
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const becca = require('../becca/becca');
|
||||
const sql = require("./sql");
|
||||
const becca = require('../becca/becca.js');
|
||||
const sql = require('./sql.js');
|
||||
|
||||
/** @returns {string|null} */
|
||||
function getOptionOrNull(name) {
|
||||
@@ -73,7 +73,7 @@ function setOption(name, value) {
|
||||
|
||||
function createOption(name, value, isSynced) {
|
||||
// to avoid circular dependency, need to find a better solution
|
||||
const BOption = require('../becca/entities/boption');
|
||||
const BOption = require('../becca/entities/boption.js');
|
||||
|
||||
new BOption({
|
||||
name: name,
|
||||
|
||||
Reference in New Issue
Block a user