feat: expose Artplayer globally in the browser environment

- Added assignment of Artplayer to the window object in both dist and src files to allow global access.
This commit is contained in:
Harvey Zhao committed 2026-07-13 12:34:21 +08:00
1 parent 4c7d0aa9fa
commit 014b21566c
7 files changed
+7 -4

No files matched your search

+1
View File
@@ -255,6 +255,7 @@ Artplayer.USE_RAF = false
Artplayer.REMOVE_SRC_WHEN_DESTROY = true
if (utils.isBrowser) {
window.Artplayer = Artplayer
utils.setStyleText('artplayer-style', style)
setTimeout(() => {