General

Files

Methods

tidioRWD.route

TidioRWD.route method is responsible for displaying the data functions depending on the type of subsite. The functions to be invoked, we can define locally or forwarded to model

tidioRWD.route(conditionFunction, callFunction);

Example use

tidioRWD.route(function(){
    if(location.pathname.indexOf(‘/home’) > -1)
    	return true;
}, function(){
    console.log('call it!');
});