Skip to content

Commit a5485b3

Browse files
[All hosts] Fix Office.js CDN URL (#5067)
1 parent f195c9c commit a5485b3

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

docs/develop/specify-office-hosts-and-api-requirements-unified.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@ This article helps you understand how to ensure that your add-in works as expect
3535
3636
## Use the latest Office JavaScript API library
3737

38-
Your add-in should load the most current version of the Office JavaScript API library from the content delivery network (CDN). To do this, be sure you have the following `<script>` tag in the first HTML file your add-in opens. Using `/1.1/` in the CDN URL ensures that you reference the most recent version of Office.js.
38+
Your add-in should load the most current version of the Office JavaScript API library from the content delivery network (CDN). To do this, be sure you have the following `<script>` tag in the first HTML file your add-in opens. Using `/1/` in the CDN URL ensures that you reference the most recent version of Office.js.
3939

4040
```HTML
41-
<script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js" type="text/javascript"></script>
41+
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>
4242
```
4343

4444
## Specify which Office applications can host your add-in
4545

46-
To specify the Office applications on which your add-in can be installed, use the "extensions.requirements.scopes" array. Specify any subset of "mail", "workbook", "document", and "presentation". The following table shows which Office application and platform combinations correspond to these values. It also shows what kind of add-in can be installed for each scope.
47-
46+
To specify the Office applications on which your add-in can be installed, use the "extensions.requirements.scopes" array. Specify any subset of "mail", "workbook", "document", and "presentation". The following table shows which Office application and platform combinations correspond to these values. It also shows what kind of add-in can be installed for each scope.
4847

4948
| Name | Office client applications | Available add-in types |
5049
|:--------------|:-----------------------------------------------|:-----------------------|
@@ -95,7 +94,7 @@ Requirement set support varies by Office application, the version of the Office
9594
Use the "requirements.capabilities" property to specify the minimum requirement sets that must be supported by the Office application to install your add-in. If the Office application or platform doesn't support the requirement sets or API members specified in the "requirements.capabilities" property, the add-in won't run in that application or platform, and won't display in **My Add-ins**.
9695

9796
> [!TIP]
98-
> All APIs in the application-specific models are in requirement sets, but some of those in the Common API model aren't. If your add-in requires an API that isn't in any requirement set, you can implement a runtime check for the availability of the API and display a message to the add-in's users if it isn't supported. For more information, see [Check for API availability at runtime](specify-api-requirements-runtime.md).
97+
> All APIs in the application-specific models are in requirement sets, but some of those in the Common API model aren't. If your add-in requires an API that isn't in any requirement set, you can implement a runtime check for the availability of the API and display a message to the add-in's users if it isn't supported. For more information, see [Check for API availability at runtime](specify-api-requirements-runtime.md).
9998
10099
The following code example shows how to configure an add-in that is installable in all Office application and platform combinations that support the following:
101100

docs/develop/specify-office-hosts-and-api-requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This article helps you understand which options you should choose to ensure that
3333
3434
## Use the latest Office JavaScript API library
3535

36-
Your add-in should load the most current version of the Office JavaScript API library from the content delivery network (CDN). To do this, be sure you have the following `<script>` tag in the first HTML file your add-in opens. Using `/1.1/` in the CDN URL ensures that you reference the most recent version of Office.js.
36+
Your add-in should load the most current version of the Office JavaScript API library from the content delivery network (CDN). To do this, be sure you have the following `<script>` tag in the first HTML file your add-in opens. Using `/1/` in the CDN URL ensures that you reference the most recent version of Office.js.
3737

3838
```HTML
3939
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>

0 commit comments

Comments
 (0)