From aa3548eb38699a6088211aef7868724244ca16a1 Mon Sep 17 00:00:00 2001 From: Uzair Shamim Date: Thu, 28 Sep 2023 02:06:09 -0400 Subject: [PATCH] Make sizes strings so caller can can use percentages --- src/youtube-video.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/youtube-video.ts b/src/youtube-video.ts index a83d77b..9ab5e3e 100644 --- a/src/youtube-video.ts +++ b/src/youtube-video.ts @@ -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 {