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
@@ -5013,6 +5013,7 @@ Artplayer.LOG_VERSION = true;
Artplayer.USE_RAF = false;
Artplayer.REMOVE_SRC_WHEN_DESTROY = true;
if (isBrowser) {
window.Artplayer = Artplayer;
setStyleText("artplayer-style", style);
setTimeout(() => {
if (Artplayer.LOG_VERSION) {