Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/youtube-video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export class YoutubeVideoElement extends HTMLElement {
}
}

get height(): number {
return Number(this.getAttribute('height'));
get height(): string {
return this.getAttribute('height');
}
get width(): number {
return Number(this.getAttribute('width'));
get width(): string {
return this.getAttribute('width');
}

get src(): string {
Expand Down