Skip to content

Commit

Permalink
fix: 还是原型注入
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Aug 6, 2023
1 parent 19a4413 commit d4e40aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/js/_app/globals/globalVars.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { $dom } from '../library/dom'
import Pjax from 'theme-shokax-pjax'
import initProto from '../library/proto'

initProto()
export const statics = CONFIG.statics.indexOf('//') > 0 ? CONFIG.statics : CONFIG.root
export const scrollAction: { x: number, y: number } = { x: 0, y: 0 }
export let diffY = 0
Expand Down
1 change: 0 additions & 1 deletion source/js/_app/pjax/domInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { mediaPlayer } from '../player'
import initProto from '../library/proto'

Check warning on line 18 in source/js/_app/pjax/domInit.ts

View workflow job for this annotation

GitHub Actions / analyze

Unused import

Unused import initProto from '../library/proto'

export default function domInit () {
initProto()
$dom.each('.overview .menu > .item', (el) => {
siteNav.child('.menu').appendChild(el.cloneNode(true))
})
Expand Down

0 comments on commit d4e40aa

Please sign in to comment.