Refactor and fix

This commit is contained in:
schmelczerandras 2020-11-22 22:43:28 +01:00
parent 91d92f7f48
commit 4be519f052
22 changed files with 118 additions and 113 deletions

View file

@ -4,13 +4,13 @@ import { generate } from './video.html';
import { url } from '../../../types/url';
export class Video extends PageElement {
public constructor(
poster: url,
mp4: url,
webm: url,
options?: string,
container = true
) {
super(createElement(generate({ poster, mp4, webm, options, container })));
public constructor(options: {
poster?: url;
mp4: url;
webm: url;
options?: string;
container?: boolean;
}) {
super(createElement(generate(options)));
}
}