move method
This commit is contained in:
@@ -32,12 +32,6 @@ export class UmbRouteContext {
|
||||
});
|
||||
}
|
||||
|
||||
#removeModalPath(info: IRoutingInfo) {
|
||||
if (window.location.href.includes(info.match.fragments.consumed)) {
|
||||
window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]);
|
||||
}
|
||||
}
|
||||
|
||||
public registerModal(registration: UmbModalRouteRegistration) {
|
||||
this.#modalRegistrations.push(registration);
|
||||
this.#generateNewUrlBuilder(registration);
|
||||
@@ -77,6 +71,12 @@ export class UmbRouteContext {
|
||||
};
|
||||
}
|
||||
|
||||
#removeModalPath(info: IRoutingInfo) {
|
||||
if (window.location.href.includes(info.match.fragments.consumed)) {
|
||||
window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]);
|
||||
}
|
||||
}
|
||||
|
||||
#generateContextRoutes() {
|
||||
this.#contextRoutes = this.#modalRegistrations.map((modalRegistration) => {
|
||||
return this.#generateRoute(modalRegistration);
|
||||
|
||||
Reference in New Issue
Block a user