|
|
@ -10,9 +10,10 @@ export class WorkerMainThreadController extends WorkerBaseController { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 是否支持 new Worker, 默认为 Wroker Class 是否实现 |
|
|
|
* 是否支持 new Worker, 默认为 Wroker Class 是否实现 |
|
|
|
|
|
|
|
* 由于Blob url支持度问题 规避Safari 12以下版本 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public canNewWorker: boolean = WorkerMainThreadController.hasWorkerClass; |
|
|
|
public canNewWorker: boolean = WorkerMainThreadController.hasWorkerClass && !(BI.isSafari() && BI.getSafariVersion() < 12); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 主线程 new Worker 起始时刻 |
|
|
|
* 主线程 new Worker 起始时刻 |
|
|
|