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": {
|
case "useTranslator": {
|
||||||
pluginTranslator = true
|
pluginTranslator = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case "fetch": {
|
case "fetch": {
|
||||||
postMsgPluginWorker('fetchData',{
|
postMsgPluginWorker('fetchData',{
|
||||||
@@ -238,11 +239,13 @@ export async function loadPlugins() {
|
|||||||
id: data.body.id,
|
id: data.body.id,
|
||||||
data: char
|
data: char
|
||||||
})
|
})
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case "setChar":{
|
case "setChar":{
|
||||||
const db = get(DataBase)
|
const db = get(DataBase)
|
||||||
const charid = get(selectedCharID)
|
const charid = get(selectedCharID)
|
||||||
db.characters[charid] = data.body
|
db.characters[charid] = data.body
|
||||||
|
break
|
||||||
}
|
}
|
||||||
case "log":{
|
case "log":{
|
||||||
console.log(data.body)
|
console.log(data.body)
|
||||||
|
|||||||
Reference in New Issue
Block a user