update plugin packages
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
||||
import { app, shell, BrowserWindow, ipcMain } from 'electron'
|
||||
import filesystemPlugin from 'takerofnotes-plugin-filesystem'
|
||||
import filesystemPlugin from '@takerofnotes/plugin-filesystem'
|
||||
import PluginRegistry from './core/PluginRegistry.js'
|
||||
import PluginConfig from './core/PluginConfig.js'
|
||||
import NotesAPI from './core/NotesAPI.js'
|
||||
import { join } from 'path'
|
||||
|
||||
const preloadPath = join(__dirname, '../preload/index.js')
|
||||
const preloadPath = join(__dirname, '../preload/index.mjs')
|
||||
const rendererPath = join(__dirname, '../renderer/index.html')
|
||||
|
||||
// Main window
|
||||
@@ -48,6 +48,7 @@ function createNoteWindow(noteId) {
|
||||
preload: preloadPath,
|
||||
contextIsolation: true,
|
||||
nodeIntegration: false,
|
||||
sandbox: false,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -84,8 +85,7 @@ app.whenReady().then(async () => {
|
||||
const registry = new PluginRegistry()
|
||||
|
||||
// Register built-in plugins
|
||||
// TODO figure out why export is under default
|
||||
registry.register(filesystemPlugin.default)
|
||||
registry.register(filesystemPlugin)
|
||||
|
||||
// Pull plugin config
|
||||
const config = await new PluginConfig(filesystemPlugin).load()
|
||||
|
||||
Reference in New Issue
Block a user