mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
fix ts
This commit is contained in:
1 parent
175e001533
commit
3e609bb153
5 files changed
+53
-21
No files matched your search
@@ -26,7 +26,7 @@ import Mobile from './mobile';
|
||||
|
||||
let id = 0;
|
||||
const instances = [];
|
||||
class Artplayer extends Emitter {
|
||||
export default class Artplayer extends Emitter {
|
||||
constructor(option) {
|
||||
super();
|
||||
this.option = validator(utils.mergeDeep(Artplayer.option, option), scheme);
|
||||
@@ -174,6 +174,3 @@ console.log(
|
||||
'color: #fff; background: #4bc729',
|
||||
'',
|
||||
);
|
||||
|
||||
window.Artplayer = Artplayer;
|
||||
export default Artplayer;
|
||||
@@ -71,9 +71,7 @@ export default class Subtitle extends Component {
|
||||
}
|
||||
|
||||
return fetch(url)
|
||||
.then((response) => {
|
||||
return response.text();
|
||||
})
|
||||
.then((response) => response.text())
|
||||
.then((text) => {
|
||||
this.art.emit('subtitle:load', url);
|
||||
switch (ext || getExt(url)) {
|
||||
|
||||
Reference in new issue
Block a user