Added the _lastSessionHash attribute inside the History constructor
This commit is contained in:
Kaki In 2022-07-26 11:11:16 +02:00
parent 832b840a15
commit 0718f1e77e
1 changed files with 6 additions and 0 deletions

View File

@ -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());