potentially made it so saved settings get applied with no reload in most situations

This commit is contained in:
Isaac Grynsztein
2020-03-11 22:04:22 -04:00
parent 4f4a82c3c4
commit bad4b8630b
4 changed files with 39 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ import 'rxjs/add/observable/throw';
import { THEMES_CONFIG } from '../themes';
import { Router } from '@angular/router';
import { DOCUMENT } from '@angular/common';
import { BehaviorSubject } from 'rxjs';
@Injectable()
export class PostsService {
@@ -20,6 +21,7 @@ export class PostsService {
handShakeComplete = false;
THEMES_CONFIG = THEMES_CONFIG;
theme;
settings_changed = new BehaviorSubject<boolean>(false);
debugMode = false;
constructor(private http: HttpClient, private router: Router, @Inject(DOCUMENT) private document: Document) {