Added missing break statements in switch statement in plugins.ts (#182)
# PR Checklist - [ unrelated ] Did you check if it works normally in all models? *ignore this when it dosen't uses models* - [ unrelated ] 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? - [ unrelated ] Did you added a type def? # Description There were some missing break statements in the switch statement in plugins.ts.
This commit is contained in:
@@ -197,6 +197,7 @@ export async function loadPlugins() {
|
||||
}
|
||||
case "useTranslator": {
|
||||
pluginTranslator = true
|
||||
break
|
||||
}
|
||||
case "fetch": {
|
||||
postMsgPluginWorker('fetchData',{
|
||||
@@ -238,11 +239,13 @@ export async function loadPlugins() {
|
||||
id: data.body.id,
|
||||
data: char
|
||||
})
|
||||
break
|
||||
}
|
||||
case "setChar":{
|
||||
const db = get(DataBase)
|
||||
const charid = get(selectedCharID)
|
||||
db.characters[charid] = data.body
|
||||
break
|
||||
}
|
||||
case "log":{
|
||||
console.log(data.body)
|
||||
|
||||
Reference in New Issue
Block a user