Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a

This commit is contained in:
OverSu 2026-11-28 12:20:19 +01:00
commit 3a1fba4efe

View file

@ -51,13 +51,14 @@ export class Alarms {
throw new Error('InvalidStateError');
if (this.state.records.filter((r) => r.owner === app.id).length >= 256)
throw new Error('QuotaExceededError');
if (JSON.stringify(data).length > 65536) throw new Error('QuotaExceededError');
const encodedData = JSON.stringify(data ?? null);
if (encodedData.length > 65536) throw new Error('QuotaExceededError');
const record = {
owner: app.id,
id: this.state.nextId++,
date,
respectTimezone,
data,
data: JSON.parse(encodedData),
local,
};
this.state.records.push(record);