Global Javascript values not recognized

Recently I have found that variables and functions defined in Global Javascript are no longer recognized in the app, an undefined is returned.

For example the defined value window.clrEdit='#FF0000' now returns undefined when used in a style script such as setting BackgroundColor using script {{component1.value ? window.clrEdit : '#FFFFFF'}}

Same is true for globally defined functions.

I checked recent updates but didn't see anything referencing Global settings. Any ideas? Thanks.

Hello! I've hit this before after adding something that errors out in the preloaded Javascript code. If you refresh your app, do you see anything like Encountered error is user preloaded JS logged in the console?

Thanks, that was it. Had an errant bracket in a long function. Thanks again.