To execute Code in Divi only when the Visual Builder is NOT enabled simply wrap it in the following if function:
if($("#wp-admin-bar-et-disable-visual-builder").length == 0 && window.location != "about:blank"){
//your code here
}
To execute Code in Divi only when the Visual Builder is NOT enabled simply wrap it in the following if function:
if($("#wp-admin-bar-et-disable-visual-builder").length == 0 && window.location != "about:blank"){
//your code here
}