Hello, we use zendesk web widget (classic) and last time we got errors in our console: Method messenger:on.close does not exist and Method messenger:on.open does not exist, but we don't use this api methods (only webWidget api methods).
As far as I understand, errors occur at the time of loading the script, we use this code for it
const s = document.createElement('script');
s.src =
'https://static.zdassets.com/ekr/snippet.js?key=key';
s.id = id;
s.defer = true;
s.async = false;
s.onload = (): void => resolve();
s.onerror = (): void => reject();
document.body.append(s);

I would be grateful if someone could help me with the problem