-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bridget Almas
committed
Sep 18, 2019
1 parent
67a5dbc
commit 4575e4c
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,14 +255,14 @@ Although we recommend you include the Alpheios Embedded Library by referencing t | |
|
||
We will update the Alpheios Embedded Library and its dependencies from time to time, and if you use the `@latest` tag to include Alpheios, your page will automatically get the latest code. If you wish to insulate your page from releases of the Alpheios functionality, you can do so by referencing the specific version of the code you wish to include. | ||
|
||
For example, to freeze your installation at the `3.0.0` version of the Alpheios Embedded Library, and the `1.2.45` version of the Alpheios Components Library dependency, you would use the following code. Note that instead of using the `cdn` mode when importing the dependencies, you need to use `custom` and also specify the explicit versioned url for the `alpheios-components.min.js` via the `libs` object. | ||
For example, to freeze your installation at the `3.0.0-rc.2` version of the Alpheios Embedded Library, and the `1.2.45` version of the Alpheios Components Library dependency, you would use the following code. Note that instead of using the `cdn` mode when importing the dependencies, you need to use `custom` and also specify the explicit versioned url for the `alpheios-components.min.js` via the `libs` object. | ||
|
||
``` | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style/style-components.min.css"/> | ||
<script type="text/javascript"> | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
import ("https://cdn.jsdelivr.net/npm/[email protected]/dist/alpheios-embedded.min.js").then(embedLib => { | ||
import ("https://cdn.jsdelivr.net/npm/[email protected]-rc.2/dist/alpheios-embedded.min.js").then(embedLib => { | ||
window.AlpheiosEmbed.importDependencies({ | ||
mode: 'custom', | ||
libs: { components: "https://cdn.jsdelivr.net/npm/[email protected]/dist/alpheios-components.min.js" } | ||
|