File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/bizproc/debugger/src/settings.js
Back
import "ls"; export default class Settings { #ttl = 3 * 86400; #prefix = 'bp-' constructor(section: string) { if (section) { this.#prefix += section + '-'; } } #getName(name: string): string { return this.#prefix + name; } getSet(name: string): Set { const value = this.get(name); return value instanceof Array ? new Set(value) : new Set(); } get(name: string): any { return BX.localStorage.get(this.#getName(name)); } set(name: string, value: any): this { if (value instanceof Set) { value = Array.from(value); } BX.localStorage.set(this.#getName(name), value, this.#ttl); return this; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings