refactor: remove global window assignment for Artplayer and template export

- Removed the assignment of Artplayer to the global window object in index.js of the artplayer package.
- Eliminated the window export for the template plugin in index.js, streamlining the code and reducing global scope pollution.
This commit is contained in:
Harvey Zhao committed 2026-03-07 20:24:29 +08:00
1 parent 2622b2c6ae
commit 1e60637b74
156 files changed
+133 -222

No files matched your search

-1
View File
@@ -4991,7 +4991,6 @@ ${line.text}`;
Artplayer2.USE_RAF = false;
Artplayer2.REMOVE_SRC_WHEN_DESTROY = true;
if (isBrowser) {
window.Artplayer = Artplayer2;
setStyleText("artplayer-style", style);
setTimeout(() => {
if (Artplayer2.LOG_VERSION) {