mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 19:41:25 -08:00
fix(docs): [SITE-LOAD-01] serialize example loading and preserve navigation
This commit is contained in:
1 parent
76499e7a3e
commit
647f3e7f12
29 files changed
+1977
-256
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { createLibraryLoader, exampleSource, parameters } from './loader.ts'
|
||||
|
||||
const loader = createLibraryLoader()
|
||||
Object.assign(window, { ArtplayerDocsLoader: { ...loader, exampleSource, parameters } })
|
||||
window.addEventListener('pagehide', (event) => {
|
||||
if (!event.persisted)
|
||||
loader.dispose()
|
||||
})
|
||||
Reference in new issue
Block a user