Revert "feat(web): move emails notifications to one pane and enable opening settings via url (#1614)" (#1617)

This reverts commit 1fe833bc24.
This commit is contained in:
Karol Sójko
2022-09-22 18:50:41 +02:00
committed by GitHub
parent 76ec8b0f90
commit 6824dd2d5f
6 changed files with 41 additions and 171 deletions

View File

@@ -29,18 +29,9 @@ export class PreferencesController {
closePreferences = (): void => {
this._open = false
this.currentPane = DEFAULT_PANE
this.removePreferencesToggleFromURLQueryParameters()
}
get isOpen(): boolean {
return this._open
}
private removePreferencesToggleFromURLQueryParameters() {
const urlSearchParams = new URLSearchParams(window.location.search)
urlSearchParams.delete('settings')
const newUrl = `${window.location.origin}${window.location.pathname}${urlSearchParams.toString()}`
window.history.replaceState(null, document.title, newUrl)
}
}