Chore: Updated python dependencies
Chore: Updated angular to v19 Chore: Refactored ops with docker and ansible
This commit is contained in:
@ -4,9 +4,8 @@ import { Injectable } from '@angular/core';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CookieService {
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
public getCookie(name: string) {
|
||||
const ca: Array<string> = document.cookie.split(';');
|
||||
const ca: string[] = document.cookie.split(';');
|
||||
const caLen: number = ca.length;
|
||||
const cookieName = `${name}=`;
|
||||
let c: string;
|
||||
@ -24,8 +23,7 @@ export class CookieService {
|
||||
this.setCookie(name, '', -1);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
public setCookie(name: string, value: string, expireDays: number, path: string = '') {
|
||||
public setCookie(name: string, value: string, expireDays: number, path = '') {
|
||||
const d: Date = new Date();
|
||||
d.setTime(d.getTime() + expireDays * 24 * 60 * 60 * 1000);
|
||||
const expires = `expires=${d.toUTCString()}`;
|
||||
|
||||
Reference in New Issue
Block a user