SetGlobalVariable/GetGlobalVariable don't work on JS: SOLVED

I’m running the following code within the chromium environment

                   exeoutput.SetGlobalVariable( 'alertskey', 'abc123', true );
                    var alerts_key = exeoutput.GetGlobalVariable( 'alertskey', null );
                    alert( alerts_key );

The alert reads “undefined” every time.

I’m wondering why it seems like everything I try with this thing doesn’t work :frowning: :?:

Are other exeoutput. Javascript functions working for you? Or just these ones?

Try setting:

var alerts_key = exeoutput.GetGlobalVariable( ‘alertskey’, null );

to

var alerts_key = exeoutput.GetGlobalVariable( ‘alertskey’, “” );

I am using global vars heavily and chromium and having no issues.

Yes, that explains the problem of zedola. Thanks!