diff --git a/CHANGELOG.md b/CHANGELOG.md index efaf889c1..32c1485b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +## v2.2.1 +`2022-06-03` +- 修复部分浏览器 / 脚本管理器中脚本无法运行. (对应报错 `Error: Couldn't find a style target`) + ## v2.2.0 `2022-06-02` diff --git a/registry/lib/components/video/player/common/speed.ts b/registry/lib/components/video/player/common/speed.ts index 3b6b152a5..abd370937 100644 --- a/registry/lib/components/video/player/common/speed.ts +++ b/registry/lib/components/video/player/common/speed.ts @@ -117,7 +117,7 @@ getSpeedContext((components: EntrySpeedComponent[]) => disposableSpeedContext => if (repeatedKeys.length) { throw new Error( - 'In the registered speed ​​component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\n' + 'In the registered speed component, there is an implementation of getSpeedContextMixin that causes the speed context to be mixed in ambiguous.\n' + `The repeated key names are ${repeatedKeys.join(', ')}`, ) } diff --git a/src/client/common.meta.json b/src/client/common.meta.json index 9101cf5d0..edc387531 100644 --- a/src/client/common.meta.json +++ b/src/client/common.meta.json @@ -1,5 +1,5 @@ { - "version": "2.2.0", + "version": "2.2.1", "author": "Grant Howard, Coulomb-G", "copyright": "[year], Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)", "licence": "MIT", diff --git a/src/plugins/id-search/index.ts b/src/plugins/id-search/index.ts index f0d523717..2c928d45a 100644 --- a/src/plugins/id-search/index.ts +++ b/src/plugins/id-search/index.ts @@ -1,5 +1,4 @@ import { LaunchBarActionProvider, LaunchBarAction } from '@/components/launch-bar/launch-bar-action' -import { Toast } from '@/core/toast' import { PluginMetadata } from '../plugin' const getCopyItem = async (name: string, id: string, original: string) => { @@ -11,6 +10,7 @@ const getCopyItem = async (name: string, id: string, original: string) => { action: async () => { if (item.name === id) { await navigator.clipboard.writeText(id) + const { Toast } = await import('@/core/toast') Toast.success('复制成功', `复制${name}`, 1500) } },