Possible to deactivate js in the backend?

hi there,

i have an js code where some sections are collapsed.
now in the backend editor all sections are closed collapsed too but this is not good for editing.
is there a way to : a.) disable the js in the backend or b.) to use the script in the backend?

because when i click the button in the backend, i come to the button properties.

thanks in advance for your help.

cheers

Hi @deranaloge,

You can try with this condition:

//is NOT under iframe(content builder)
if( window.self === window.top ) {
//your code go here
}

For more information, please take a look at this:

Hope it helps :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.