mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:09:34 +00:00
fix(security): sanitize remote IP headers and escape log viewer output
#4135
This commit is contained in:
@@ -150,7 +150,11 @@
|
||||
},
|
||||
initHeadline() {
|
||||
const animationDelay = 2000;
|
||||
const headlines = this.$el.querySelectorAll('.headline');
|
||||
const rootEl = this.$el instanceof Element ? this.$el : document.getElementById('app');
|
||||
if (!rootEl || typeof rootEl.querySelectorAll !== 'function') {
|
||||
return;
|
||||
}
|
||||
const headlines = rootEl.querySelectorAll('.headline');
|
||||
headlines.forEach((headline) => {
|
||||
const first = headline.querySelector('.is-visible');
|
||||
if (!first) return;
|
||||
|
||||
Reference in New Issue
Block a user