Skip to content

Commit 66597aa

Browse files
committed
Make example player mount snippets LibreJS compatible
1 parent 8d977c2 commit 66597aa

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/getting-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ the standalone player on your website like this:
192192
...
193193
<script src="/asciinema-player.min.js"></script>
194194
<script>
195+
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
195196
AsciinemaPlayer.create('/demo.cast', document.getElementById('demo'));
197+
// @license-end
196198
</script>
197199
</body>
198200
</html>

docs/manual/player/quick-start.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ inside an empty container `<div>` element:
4848
...
4949
<script src="/asciinema-player.min.js"></script>
5050
<script>
51+
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
5152
AsciinemaPlayer.create('/demo.cast', document.getElementById('demo'));
53+
// @license-end
5254
</script>
5355
</body>
5456
</html>
@@ -75,6 +77,10 @@ AsciinemaPlayer.create('/demo.cast', document.getElementById('demo'));
7577

7678
Finally, include player's CSS file in your site CSS bundle. It's at `dist/bundle/asciinema-player.css` in the npm package.
7779

80+
If you need LibreJS compatibility when using a JavaScript bundler, add LibreJS
81+
license metadata to your final application bundle and any inline JavaScript on
82+
the page.
83+
7884
## Basic usage
7985

8086
In the code snippets above we initialized the player by calling `create` with 2

0 commit comments

Comments
 (0)