Skip to content

Commit

Permalink
Merge branch 'preview-fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Jun 3, 2022
2 parents 407754c + d6567b6 commit 70a2709
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## v2.2.1
`2022-06-03`
- 修复部分浏览器 / 脚本管理器中脚本无法运行. (对应报错 `Error: Couldn't find a style target`)

## v2.2.0
`2022-06-02`

Expand Down
2 changes: 1 addition & 1 deletion registry/lib/components/video/player/common/speed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(', ')}`,
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/common.meta.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/id-search/index.ts
Original file line number Diff line number Diff line change
@@ -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) => {
Expand All @@ -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)
}
},
Expand Down

0 comments on commit 70a2709

Please sign in to comment.