Not execute portal branding script in the WebHelp (or execute only in the WebHelp)

The Portal Branding script is used in your online portal (Online Publications included) and the WebHelp output as well. You can modify the script so it will be executed only in the Web Help or vice versa - executed in your online portal only.

What you need to do is add a simple check to your Branding Script and then add all logic inside the if statement.

JavaScript
var isWebHelp = !!document.querySelectior("body.WebHelp_body");

window.onload = function() {
if (!isWebHelp) {
// Your logic goes here
}
else {
// Do nothing
}
};