mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-24 19:59:36 +00:00
Expose obsidian plugin api and allow saving/loading
This commit is contained in:
3
build.js
3
build.js
@@ -161,8 +161,9 @@ mkdirSync(OBSIDIAN_DIR, { recursive: true });
|
||||
// Wrap birb.js with plugin boilerplate
|
||||
const obsidianPlugin = `
|
||||
const { Plugin, Notice } = require('obsidian');
|
||||
module.exports = class MyPlugin extends Plugin {
|
||||
module.exports = class PocketBird extends Plugin {
|
||||
onload() {
|
||||
const OBSIDIAN_PLUGIN = this;
|
||||
${birbJs}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user