Created
September 13, 2023 13:30
-
-
Save davecra/6bdf13223c7725c90f9d58e17d40c934 to your computer and use it in GitHub Desktop.
Office OnReady in JSRuntime
This file contains hidden or 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