mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
set to true if undefined passed in as well
This commit is contained in:
parent
4fe971775c
commit
087aff4ef4
@ -58,9 +58,9 @@ export class Navigation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class Segment {
|
export class Segment {
|
||||||
constructor(type, value = true) {
|
constructor(type, value) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.value = value;
|
this.value = value === undefined ? true : value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user