fix: unrenamed.

This commit is contained in:
Ansolve 2024-01-11 04:21:53 +08:00
parent aa089a9d32
commit f38c6e6263
No known key found for this signature in database
GPG Key ID: 2F2873AC9538CC2D
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { ErrorHandler } from './struct/index.js';
import { PromiseErrorHandler } from './struct/index.js';
/**
* 从浏览器名到不同浏览器下异步处理方式的映射
@ -8,10 +8,10 @@ import { ErrorHandler } from './struct/index.js';
* @type {Record<"firefox" | "chrome" | "safari" | "other", new () => PromiseErrorHandler>}
*/
export const promiseErrorHandlerMap = {
'chrome': ErrorHandler.ChromePromiseErrorHandler,
'firefox': ErrorHandler.FirefoxPromiseErrorHandler,
'safari': ErrorHandler.UnknownPromiseErrorHandler,
'other': ErrorHandler.UnknownPromiseErrorHandler
'chrome': PromiseErrorHandler.ChromePromiseErrorHandler,
'firefox': PromiseErrorHandler.FirefoxPromiseErrorHandler,
'safari': PromiseErrorHandler.UnknownPromiseErrorHandler,
'other': PromiseErrorHandler.UnknownPromiseErrorHandler
};
/**

View File

@ -2,4 +2,4 @@
* 无名杀内部所需要的数据结构
*/
export * as ErrorHandler from './error-handler/index.js';
export * as PromiseErrorHandler from './promise-error-handler/index.js';