Skip to content

Commit 98e162f

Browse files
committed
fix(clippy): use jsdelivr by default
1 parent d5f1c8b commit 98e162f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

addons/clippy/settings.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"schema": {
99
"type": "string"
1010
},
11-
"default": "https://raw.githack.com/pi0/clippyjs/master/assets/"
11+
"default": "https://cdn.jsdelivr.net/gh/pi0/clippyjs@master/assets/"
1212
},
1313
{
1414
"key": "clippy.agent.name",

addons/clippy/src/renderer/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ export default () => {
3737
}, undefined, assetsPath + 'agents/')
3838
onInvalidate(() => {
3939
if (currentAgent) {
40+
const el = currentAgent._el
4041
currentAgent.hide(false, () => {
41-
currentAgent!._el.remove()
42+
el.remove()
4243
})
4344
currentAgent = undefined
4445
}

src/api/modules/ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as path from 'node:path'
22
import * as url from 'node:url'
3+
import { URL } from 'node:url'
34
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge'
45
import TabItem from '../../renderer/components/TabItem.vue'
56
import TerminalBlock from '../../renderer/components/TerminalBlock.vue'

0 commit comments

Comments
 (0)