Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue