mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 12:46:15 -08:00
13 lines
401 B
Smarty
13 lines
401 B
Smarty
import css from './style.less?inline'
|
|
|
|
// The stylesheet belongs to the module, not individual player instances.
|
|
if (typeof document !== 'undefined') {
|
|
const id = 'artplayer-plugin-{{name}}'
|
|
if (!document.getElementById(id)) {
|
|
const style = document.createElement('style')
|
|
style.id = id
|
|
style.textContent = css
|
|
;(document.head || document.documentElement).appendChild(style)
|
|
}
|
|
}
|