Skip to content

Commit

Permalink
feat: use addPluginButton to register button
Browse files Browse the repository at this point in the history
  • Loading branch information
0x24a committed Mar 8, 2024
1 parent c7cb999 commit 33ad59b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugins/plugins_manager/index.js
Original file line number Diff line number Diff line change
@@ -30,15 +30,12 @@ plugins_manager_back.addEventListener("click",()=>{
plugins_manager.addEventListener("click",()=>{
canclose = false
});
var plugins_manager_show = document.createElement('button');
plugins_manager_show.id = "show_plugins_manager";
plugins_manager_show.innerText = "Plugins Manager";
plugins_manager_show.addEventListener("click",()=>{
function openPluginManager(){
plugins_manager_back.style.display = "flex";
canclose = true;
getTableList();
});
document.getElementById("plugin-buttons").appendChild(plugins_manager_show);
};
addPluginButton("Plugin Manager", openPluginManager);

var getTableList = async(showInfo=false) => {
let table = document.createElement('table');

0 comments on commit 33ad59b

Please sign in to comment.