From 114a59d105ad3797265cc43d463bbc08dcff75c5 Mon Sep 17 00:00:00 2001 From: Sam Ramon <15154970+samantharamon@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:01:55 -0700 Subject: [PATCH] Remove additional instance --- .../src/commands/commands.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Samples/outlook-verify-sensitivity-label/src/commands/commands.js b/Samples/outlook-verify-sensitivity-label/src/commands/commands.js index 5402cf30..f883a123 100644 --- a/Samples/outlook-verify-sensitivity-label/src/commands/commands.js +++ b/Samples/outlook-verify-sensitivity-label/src/commands/commands.js @@ -329,8 +329,6 @@ function containsLegalTeamMember(recipients) { /** * Maps the event handler name specified in the manifest to its JavaScript counterpart. */ -if (Office.context.platform === Office.PlatformType.PC || Office.context.platform == null) { - Office.actions.associate("onMessageRecipientsChangedHandler", onMessageRecipientsChangedHandler); - Office.actions.associate("onMessageSendHandler", onMessageSendHandler); - Office.actions.associate("onSensitivityLabelChangedHandler", onSensitivityLabelChangedHandler); -} \ No newline at end of file +Office.actions.associate("onMessageRecipientsChangedHandler", onMessageRecipientsChangedHandler); +Office.actions.associate("onMessageSendHandler", onMessageSendHandler); +Office.actions.associate("onSensitivityLabelChangedHandler", onSensitivityLabelChangedHandler);