Js api - onLoad is not accurate?

functions and methods in the onload method are not ready.

for example:
window.Tawk_API.onLoad = function(){
window.Tawk_API.setAttributes({
‘id’ : ‘A1234’,
‘store’ : ‘Midvalley’
}, function(error){});
};
setAttribute method fails without error

If I set a timeout and wait 3 secs setAttribute runs without error.

2 Likes

Same problem here, setAttributes not work in chats.