mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Use prettier to format code
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
/* See if an element is within eruda.
|
||||
*/
|
||||
|
||||
function exports(el)
|
||||
{
|
||||
function exports(el) {
|
||||
var parentNode = el.parentNode;
|
||||
|
||||
if (!parentNode) return false;
|
||||
|
||||
while (parentNode)
|
||||
{
|
||||
while (parentNode) {
|
||||
parentNode = parentNode.parentNode;
|
||||
if (parentNode && parentNode.id === 'eruda') return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user