Skip to content

Commit

Permalink
fix: add missing definitions of plugin APIs (#690)
Browse files Browse the repository at this point in the history
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it doesn't use models*
  - It doesn't use models.
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
  - Only checked on the browser
- [ ] Did you add a type def?
  - It does nothing with types
# Description
In plugins.ts methods `addRisuReplacer` and `removeRisuReplacer` are
implemented but not defined (exported).
I thought that the definitions were simply missing. So I added only two
lines.
  • Loading branch information
kwaroran authored Dec 25, 2024
2 parents 14cd6aa + 47cf303 commit 46065eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ts/plugins/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ export async function loadV2Plugin(plugins:RisuPlugin[]){
const setChar = globalThis.__pluginApis__.setChar
const addProvider = globalThis.__pluginApis__.addProvider
const addRisuEventHandler = globalThis.__pluginApis__.addRisuEventHandler
const addRisuReplacer = globalThis.__pluginApis__.addRisuReplacer
const removeRisuReplacer = globalThis.__pluginApis__.removeRisuReplacer
const onUnload = globalThis.__pluginApis__.onUnload
${data}
Expand Down

0 comments on commit 46065eb

Please sign in to comment.