|
|
@ -33,9 +33,9 @@ export default class NavigateUseCase { |
|
|
|
async openParent(): Promise<void> { |
|
|
|
async openParent(): Promise<void> { |
|
|
|
let tab = await this.tabPresenter.getCurrent(); |
|
|
|
let tab = await this.tabPresenter.getCurrent(); |
|
|
|
let url = new URL(tab.url!!); |
|
|
|
let url = new URL(tab.url!!); |
|
|
|
if (url.hash !== '') { |
|
|
|
if (url.hash.length > 0) { |
|
|
|
url.hash = ''; |
|
|
|
url.hash = ''; |
|
|
|
} else if (url.search !== '') { |
|
|
|
} else if (url.search.length > 0) { |
|
|
|
url.search = ''; |
|
|
|
url.search = ''; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const basenamePattern = /\/[^/]+$/; |
|
|
|
const basenamePattern = /\/[^/]+$/; |
|
|
|