File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,9 @@ Office.EnhancedLocationsChangedEventArgs:interface:
362
362
document.addEventListener('DOMContentLoaded', () => {
363
363
// Get a reference to the mailbox and use it to add an event handler.
364
364
const mailbox = Office.context.mailbox;
365
- mailbox.addHandlerAsync(Office.EventType.EnhancedLocationsChanged, enhancedLocationsChangedHandler, (result) => {
365
+ mailbox.item. addHandlerAsync(Office.EventType.EnhancedLocationsChanged, enhancedLocationsChangedHandler, (result) => {
366
366
if (result.status === Office.AsyncResultStatus.Failed) {
367
- console.error(`Failed to add event handler: ${asyncResult .error.message}`);
367
+ console.error(`Failed to add event handler: ${result .error.message}`);
368
368
return;
369
369
}
370
370
You can’t perform that action at this time.
0 commit comments