Refactor and fix
This commit is contained in:
parent
91d92f7f48
commit
4be519f052
22 changed files with 118 additions and 113 deletions
|
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue