mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix missing class filter
This commit is contained in:
parent
e422ca01b6
commit
7ee1b85b66
@ -14,7 +14,11 @@ export const component = defineComponentMetadata({
|
||||
entry: async () => {
|
||||
allMutations(records => {
|
||||
records.forEach(record => {
|
||||
if (record.target instanceof HTMLInputElement && record.target.placeholder !== '搜索') {
|
||||
if (
|
||||
record.target instanceof HTMLInputElement &&
|
||||
record.target.classList.contains('nav-search-input') &&
|
||||
record.target.placeholder !== '搜索'
|
||||
) {
|
||||
record.target.placeholder = '搜索'
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user