remove outline util

This commit is contained in:
Harvey Zack committed 2022-04-28 07:19:48 +08:00
1 parent d05ec2095d
commit f95384b41a
3 files changed
+4 -21

No files matched your search

+2 -5
View File
@@ -1,4 +1,4 @@
import { setStyle, setStyles, srtToVtt, vttToBlob, getExt, assToVtt, escape, errorHandle, outline } from './utils';
import { setStyle, setStyles, srtToVtt, vttToBlob, getExt, assToVtt, escape, errorHandle } from './utils';
import Component from './utils/component';
import validator from 'option-validator';
import scheme from './scheme';
@@ -80,10 +80,7 @@ export default class Subtitle extends Component {
proxy(this.textTrack, 'cuechange', this.update.bind(this));
}
this.style({
'text-shadow': outline(),
...subtitleOption.style,
});
this.style(subtitleOption.style);
errorHandle(window.fetch, 'fetch not support');
return fetch(subtitleOption.url)