Hi Mo, also maybe instead of looking at the URL it may be better to look for that global variable existing.
Something like this:
code:
var uipanels = moi.ui.getUIPanels();
for ( var i = 0; i < uipanels.length; ++i )
{
var uipanel = uipanels.item(i);
/* uipanel is the HTML window object that holds global variables. */
/* Find the one that has a global variable "LiteGraph". */
if ( uipanel.LiteGraph )
{
moi.ui.alert( 'found it' );
}
}
|