mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: domain.lang
This commit is contained in:
1 parent
680e3ccd32
commit
387bd5eb38
6 files changed
+12
-11
No files matched your search
@@ -21,12 +21,8 @@ export class Page {
|
||||
}
|
||||
|
||||
isNameMatch(name) {
|
||||
if (typeof this.name === 'string') {
|
||||
return this.name === name;
|
||||
}
|
||||
if (this.name instanceof Array) {
|
||||
return this.name.indexOf(name) !== -1;
|
||||
}
|
||||
if (typeof this.name === 'string') return this.name === name;
|
||||
if (this.name instanceof Array) return this.name.includes(name);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user