forked from mystiq/hydrogen-web
Fixed the https://github.com/vector-im/hydrogen-web/pull/816#discussion_r929692693 comment
Added the _lastSessionHash attribute inside the History constructor
This commit is contained in:
parent
832b840a15
commit
0718f1e77e
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ limitations under the License.
|
|||
import {BaseObservableValue} from "../../../observable/ObservableValue";
|
||||
|
||||
export class History extends BaseObservableValue {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this._lastSessionHash = null;
|
||||
}
|
||||
|
||||
handleEvent(event) {
|
||||
if (event.type === "hashchange") {
|
||||
this.emit(this.get());
|
||||
|
|
Loading…
Reference in a new issue