Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
justinribeiro committed Jul 8, 2022
1 parent c846a8d commit ef8e5a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import '@justinribeiro/lite-youtube';
If you want the paste-and-go version, you can simply load it via CDN:

```html
<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/[email protected].1/lite-youtube.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/[email protected].2/lite-youtube.js"></script>
```

## Basic Usage
Expand Down
7 changes: 5 additions & 2 deletions lite-youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ export class LiteYTEmbed extends HTMLElement {
return this.getAttribute('posterquality') || 'hqdefault';
}

get posterLoading(): string {
return this.getAttribute('posterloading') || 'lazy';
get posterLoading(): HTMLImageElement['loading'] {
return (
(this.getAttribute('posterloading') as HTMLImageElement['loading']) ||
'lazy'
);
}

get params(): string {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lite-youtube.js.map"
],
"license": "MIT",
"version": "1.3.1",
"version": "1.3.2",
"main": "lite-youtube.js",
"module": "lite-youtube.js",
"types": "lite-youtube.d.ts",
Expand Down

0 comments on commit ef8e5a0

Please sign in to comment.