We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 818dcc9 commit 57d4231Copy full SHA for 57d4231
1 file changed
src/lib/acode.js
@@ -30,6 +30,7 @@ import files from "lib/fileList";
30
import fileTypeHandler from "lib/fileTypeHandler";
31
import fonts from "lib/fonts";
32
import {
33
+ BROKEN_PLUGINS,
34
LOADED_PLUGINS,
35
onPluginLoadCallback,
36
onPluginsLoadCompleteCallback,
@@ -78,10 +79,8 @@ export default class Acode {
78
79
*/
80
clearBrokenPluginMark(pluginId) {
81
try {
- const broken = appSettings.value.pluginsBroken || {};
82
- if (broken[pluginId]) {
83
- delete broken[pluginId];
84
- appSettings.update(false);
+ if (BROKEN_PLUGINS.has(pluginId)) {
+ BROKEN_PLUGINS.delete(pluginId);
85
}
86
} catch (e) {
87
console.warn("Failed to clear broken plugin mark:", e);
0 commit comments