diff --git a/noname/util/browser.js b/noname/util/browser.js index 9e653667c..7e84aa899 100644 --- a/noname/util/browser.js +++ b/noname/util/browser.js @@ -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 }; /** diff --git a/noname/util/struct/index.js b/noname/util/struct/index.js index 70eb9cd3c..3515a4fad 100644 --- a/noname/util/struct/index.js +++ b/noname/util/struct/index.js @@ -2,4 +2,4 @@ * 无名杀内部所需要的数据结构 */ -export * as ErrorHandler from './error-handler/index.js'; +export * as PromiseErrorHandler from './promise-error-handler/index.js'; diff --git a/noname/util/struct/error-handler/chrome.js b/noname/util/struct/promise-error-handler/chrome.js similarity index 100% rename from noname/util/struct/error-handler/chrome.js rename to noname/util/struct/promise-error-handler/chrome.js diff --git a/noname/util/struct/error-handler/firefox.js b/noname/util/struct/promise-error-handler/firefox.js similarity index 100% rename from noname/util/struct/error-handler/firefox.js rename to noname/util/struct/promise-error-handler/firefox.js diff --git a/noname/util/struct/error-handler/index.js b/noname/util/struct/promise-error-handler/index.js similarity index 100% rename from noname/util/struct/error-handler/index.js rename to noname/util/struct/promise-error-handler/index.js diff --git a/noname/util/struct/error-handler/unknown.js b/noname/util/struct/promise-error-handler/unknown.js similarity index 100% rename from noname/util/struct/error-handler/unknown.js rename to noname/util/struct/promise-error-handler/unknown.js