more cleanup

This commit is contained in:
Ajay Sabhaney 2021-04-05 14:14:28 -04:00
parent 3026a70e61
commit b8c45688f6

View File

@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http';
import { ThemeService } from '../../services/theme.service';
import { AdButlerResponse } from '../../models/adbutler';
const adButlerResponseBodyRegex: RegExp = /<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i
const adButlerResponseBodyRegex: RegExp = /<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i;
@Component({
selector: 'app-adbutler',
@ -58,7 +58,7 @@ export class AdbutlerComponent implements OnInit {
? this.isLightThemeEnabled = true
: this.isLightThemeEnabled = false;
this.themeService.themeChanged.subscribe((value: string) => {
this.themeService.themeChanged.subscribe(() => {
this.themeService.getActualTheme() === 'light'
? this.isLightThemeEnabled = true
: this.isLightThemeEnabled = false;