mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Remove duplicate in protocol list of omr-bypass
This commit is contained in:
parent
edf0362615
commit
c22707f48a
2 changed files with 3 additions and 3 deletions
|
@ -183,9 +183,9 @@ return L.view.extend({
|
|||
for (var i = 0; i < host.length; i++) {
|
||||
var m = host[i].split(/:/);
|
||||
if (m && m[0] != "#Proto")
|
||||
name.push(m[0]);
|
||||
name.push(m[0].toLowerCase());
|
||||
}
|
||||
name = Array.from(new Set(name)).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); });
|
||||
name = Array.from(new Set(name)).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase())}).reduce(function(a, b){ if (a.slice(-1)[0] !== b) a.push(b);return a;},[]);
|
||||
for (var i = 0; i < name.length; i++) {
|
||||
this.value(name[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue