I am developing word office add-in.I need to load word javascript API based on microsoft version available. example:-If office version is 2016 i need to load Word API version 1.1 If it is 2019 i need to load Word API 1.2 As of now i am checking whether current office version supporting Word API 1.1 or not.
if (!Office.context.requirements.isSetSupported('WordApi', '1.1')) {
showNotification("Error!", "This version not supported");
return;
}
But i need to load as per above criteria. can some one please help me.