fix: update window export syntax for plugin; ensure compatibility with global scope

feat: add example usage for artplayer-plugin-test in test.js
This commit is contained in:
Harvey Zack committed 2025-08-17 18:30:23 +08:00
1 parent abbecff472
commit e7633ed49d
2 files changed
+13 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
// npm i artplayer-plugin-test
// import artplayerPluginTest from 'artplayer-plugin-test';
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
plugins: [
artplayerPluginTest({
//
}),
],
});
+1 -1
View File
@@ -27,5 +27,5 @@ if (typeof document !== 'undefined') {
}
if (typeof window !== 'undefined') {
window['{{export}}'] = {{export}};
window.{{export}} = {{export}};
}