Make sure the network name cannot be changed through URL override when the network info is not displayed
This commit is contained in:
parent
039d1220cb
commit
13e6f37eda
@ -182,6 +182,11 @@ function parseOverrideParams(params, data) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When the network is not displayed, its name in the UI is not customizable
|
||||||
|
if (!data.displayNetwork && key === "name") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (key === "join") {
|
if (key === "join") {
|
||||||
value = value.split(",").map((chan) => {
|
value = value.split(",").map((chan) => {
|
||||||
if (!chan.match(/^[#&!+]/)) {
|
if (!chan.match(/^[#&!+]/)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user