Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
luxluth committed May 20, 2024
1 parent e200472 commit e071fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pnpm add ass-html5
let res = await fetch('/assets/video.ass');
let assSubs = await res.text();
const ass = new ASS({
const ass = new ASS.default({
assText: assSubs,
video: document.getElementById('video')
});
Expand Down Expand Up @@ -151,7 +151,7 @@ In the `script` tag :
player.ready(async () => {
// Get the video element from the player
var videoElement = player.el().getElementsByTagName('video')[0];
const ass = new ASS({
const ass = new ASS.default({
assText: assSubs,
video: videoElement
});
Expand Down

0 comments on commit e071fcb

Please sign in to comment.