mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
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
@ -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 New Issue
Block a user