mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Resolve variable naming conflicts
This commit is contained in:
parent
f574d635ad
commit
1ccf56735f
@ -17,8 +17,8 @@ const options = defineOptionsMetadata({
|
||||
|
||||
type Options = OptionsOfMetadata<typeof options>
|
||||
|
||||
const entry: ComponentEntry<Options> = ({ metadata, settings: { options } }) => {
|
||||
Object.keys(options).forEach(disableType => {
|
||||
const entry: ComponentEntry<Options> = ({ metadata, settings }) => {
|
||||
Object.keys(settings.options).forEach(disableType => {
|
||||
addComponentListener(`${metadata.name}.${disableType}`, (value: boolean) => {
|
||||
document.body.classList.toggle(`disable-${disableType}-danmaku-style`, value)
|
||||
}, true)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user