fix filesystem plugin import

This commit is contained in:
nicwands
2026-03-23 17:06:58 -04:00
parent 342feb845f
commit 831d41b5ae
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
import filesystemPlugin from '@takerofnotes/plugin-filesystem'
import {
createPluginManager,
createPluginManagerClient,
@@ -43,6 +42,9 @@ const initConfigManager = async (runtime) => {
let storage
if (runtime === 'electron-main') {
const { createNodeStorage } = await import('./NodeStorage.js')
const filesystemPlugin = (
await import('@takerofnotes/plugin-filesystem')
).default
storage = createNodeStorage(filesystemPlugin)
} else if (runtime === 'web') {
storage = createWebStorage()