Office OnReady in JSRuntime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ensures the Office.js library is loaded. | |
*/ | |
Office.onReady((info) => { | |
/** | |
* Maps the event handler name specified in the manifest's LaunchEvent element to its JavaScript counterpart. | |
* This ensures support in Outlook on Windows. | |
*/ | |
if (Office.context.platform === Office.PlatformType.PC || Office.context.platform == null) { | |
Office.actions.associate("onMessageSendHandler", onMessageSendHandler); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment