Commit a5b5fbeb authored by Merzough Münker's avatar Merzough Münker
Browse files

fix: move remember check to hook function

parent 745cbe2b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -21,9 +21,6 @@ export class ChangelogService {
  private readonly applicationRef = inject(ApplicationRef);

  public showChangelogDialog() {
    if (localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION) === this.version) {
      return;
    }
    const body = document.getElementsByTagName('body')[0];
    const div = document.createElement('div');
    body.appendChild(div);
@@ -53,6 +50,10 @@ export class ChangelogService {
      localStorage.removeItem(RXAP_CHANGELOG_LAST_VERSION);
    }

    if (localStorage.getItem(RXAP_CHANGELOG_LAST_VERSION) === this.version) {
      return;
    }

    this.showChangelogDialog();

  }