diff --git a/src/app/partials/settings-dialog/settings-dialog.component.ts b/src/app/partials/settings-dialog/settings-dialog.component.ts index 3eb457c..1457d13 100644 --- a/src/app/partials/settings-dialog/settings-dialog.component.ts +++ b/src/app/partials/settings-dialog/settings-dialog.component.ts @@ -21,7 +21,7 @@ import { ButtonModule } from "primeng/button"; }) export class SettingsDialogComponent implements OnInit { visible = false; - blogURL: string = "hashnode.anguhashblog.com"; + blogURL: string = "hashblog-withangular.hashnode.dev"; newBlogInput: string = ""; newBlogURL: string = ""; blogURLChanged: boolean = false; @@ -32,7 +32,7 @@ export class SettingsDialogComponent implements OnInit { ngOnInit() { this.blogURL = this.blogService.getBlogURL(); - this.blogURLChanged = this.blogURL !== "hashnode.anguhashblog.com"; + this.blogURLChanged = this.blogURL !== "hashblog-withangular.hashnode.dev"; } changeBlogURL(): void { @@ -56,7 +56,7 @@ export class SettingsDialogComponent implements OnInit { } // Check if it's the default URL case - if (this.newBlogURL === "hashnode.anguhashblog.com") { + if (this.newBlogURL === "hashblog-withangular.hashnode.dev") { this.blogURLChanged = false; return; } diff --git a/src/app/services/blog.service.ts b/src/app/services/blog.service.ts index 75d323c..d07f0b0 100644 --- a/src/app/services/blog.service.ts +++ b/src/app/services/blog.service.ts @@ -18,7 +18,7 @@ import { isPlatformBrowser } from "@angular/common"; providedIn: "root", }) export class BlogService { - blogURL: string = "hashnode.anguhashblog.com"; + blogURL: string = "hashblog-withangular.hashnode.dev"; private readonly localStorageKey = "userBlogURL"; constructor( @@ -30,10 +30,10 @@ export class BlogService { if (isPlatformBrowser(this.platformId)) { return ( localStorage.getItem(this.localStorageKey) ?? - "hashnode.anguhashblog.com" + "hashblog-withangular.hashnode.dev" ); } - return "hashnode.anguhashblog.com"; + return "hashblog-withangular.hashnode.dev"; } setBlogURL(newBlogURL: string): void { @@ -45,7 +45,7 @@ export class BlogService { resetBlogURL(): void { localStorage.removeItem(this.localStorageKey); - this.blogURL = "hashnode.anguhashblog.com"; + this.blogURL = "hashblog-withangular.hashnode.dev"; } getBlogInfo(host: string): Observable {