chore: add deprecation notice on dot org site

This commit is contained in:
Mo
2022-12-05 17:20:47 -06:00
parent d3262b0f01
commit ccde207de8
5 changed files with 25 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ export class RouteService
return new RouteParser(window.location.href)
}
get isDotOrg(): boolean {
return window.location.host === 'app.standardnotes.org'
}
removeQueryParameterFromURL(param: RootQueryParam): void {
const urlSearchParams = new URLSearchParams(window.location.search)
urlSearchParams.delete(param)

View File

@@ -5,4 +5,5 @@ export interface RouteServiceInterface {
deinit(): void
getRoute(): RouteParserInterface
removeQueryParameterFromURL(param: RootQueryParam): void
get isDotOrg(): boolean
}