mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Fix search text
This commit is contained in:
@@ -132,7 +132,7 @@ export default [
|
||||
evalCss(require('./searchText.scss'), document.head)
|
||||
|
||||
function search(text) {
|
||||
let root = document.documentElement,
|
||||
let root = document.body,
|
||||
regText = new RegExp(text, 'ig')
|
||||
|
||||
traverse(root, node => {
|
||||
|
||||
Reference in New Issue
Block a user