NavigateUseCase TabPresenter
This commit is contained in:
parent
45a10d93c7
commit
03370301a7
2 changed files with 5 additions and 3 deletions
|
@ -33,9 +33,9 @@ export default class NavigateUseCase {
|
|||
async openParent(): Promise<void> {
|
||||
let tab = await this.tabPresenter.getCurrent();
|
||||
let url = new URL(tab.url!!);
|
||||
if (url.hash !== '') {
|
||||
if (url.hash.length > 0) {
|
||||
url.hash = '';
|
||||
} else if (url.search !== '') {
|
||||
} else if (url.search.length > 0) {
|
||||
url.search = '';
|
||||
} else {
|
||||
const basenamePattern = /\/[^/]+$/;
|
||||
|
|
Reference in a new issue