Skip to content

Commit 88e7178

Browse files
[office-js][office-js-preview] (Device Permission) Clarify which clients support access to geolocation (DefinitelyTyped#73049)
1 parent 83b5b65 commit 88e7178

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

types/office-js-preview/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5498,6 +5498,8 @@ declare namespace Office {
54985498
*
54995499
* - If a user selects **Deny** from the dialog, the user will be requested for permissions again the next time the add-in requires access to the user's device capabilities.
55005500
*
5501+
* - Access to a user's geolocation isn't supported in Excel, PowerPoint, and Word. It's only supported in Outlook on the web and new Outlook on Windows using the `requestPermissionsAsync` method.
5502+
*
55015503
* @param permissions An array of device capabilities to which an add-in is requesting access.
55025504
* In web versions of Excel, PowerPoint, and Word, add-ins can only request access to a user's camera and microphone.
55035505
* Access to a user's geolocation is blocked.

types/office-js/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5446,6 +5446,8 @@ declare namespace Office {
54465446
*
54475447
* - If a user selects **Deny** from the dialog, the user will be requested for permissions again the next time the add-in requires access to the user's device capabilities.
54485448
*
5449+
* - Access to a user's geolocation isn't supported in Excel, PowerPoint, and Word. It's only supported in Outlook on the web and new Outlook on Windows using the `requestPermissionsAsync` method.
5450+
*
54495451
* @param permissions An array of device capabilities to which an add-in is requesting access.
54505452
* In web versions of Excel, PowerPoint, and Word, add-ins can only request access to a user's camera and microphone.
54515453
* Access to a user's geolocation is blocked.

0 commit comments

Comments
 (0)