mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
feat(plugin): support dynamic plugin load / unload
This commit is contained in:
@ -31,7 +31,7 @@ const createContext = <
|
||||
},
|
||||
});
|
||||
|
||||
const forceUnloadRendererPlugin = (id: keyof PluginBuilderList) => {
|
||||
export const forceUnloadRendererPlugin = (id: keyof PluginBuilderList) => {
|
||||
unregisterStyleMap[id]?.forEach((unregister) => unregister());
|
||||
delete unregisterStyleMap[id];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user