mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
add width
This commit is contained in:
1 parent
e2f27e8ea5
commit
74460a765e
1 file changed
+2
-1
@@ -28,7 +28,8 @@ export default class Danmuku {
|
||||
this.config(option);
|
||||
|
||||
// 创建 Web Worker, 用于计算弹幕的 top 值
|
||||
this.worker = new Worker(URL.createObjectURL(new Blob([workerText])));
|
||||
const blob = new Blob([workerText], { type: 'application/javascript' });
|
||||
this.worker = new Worker(URL.createObjectURL(blob));
|
||||
|
||||
// 绑定公用事件
|
||||
this.start = this.start.bind(this);
|
||||
|
||||
Reference in new issue
Block a user