JS API Update

Build the plugin console inside of the execute function. This allows the tab name to update correctly based on the resource being processed. (It will fallback without correct tab names if not)
This commit is contained in:
Konloch 2021-07-21 06:22:22 -07:00
parent ce86445ad3
commit 0729da39f3

View file

@ -10,10 +10,12 @@ var dialogue = new MultipleChoiceDialogue("Bytecode Viewer - WARNING",
"WARNING: This will load the classes into the JVM and execute the initialize function"
+ "\nfor each class. IF THE FILE YOU'RE LOADING IS MALICIOUS, DO NOT CONTINUE.",
["Continue", "Cancel"]);
var gui = new PluginConsole("Skeleton");
var gui;
function execute(classNodeList)
{
gui = new PluginConsole("Skeleton");
if(dialogue.promptChoice() == 0)
{
var needsWarning = false;