mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 21:15:45 +01:00
Add storage["errors"].
This commit is contained in:
@@ -1668,6 +1668,12 @@ const liberator = (function () //{{{
|
|||||||
if (!(k in obj))
|
if (!(k in obj))
|
||||||
obj[k] = v;
|
obj[k] = v;
|
||||||
}
|
}
|
||||||
|
if (liberator.storeErrors)
|
||||||
|
{
|
||||||
|
let errors = storage.newArray("errors", false);
|
||||||
|
errors.toString = function () [String(v[0]) + "\n" + v[1] for ([k, v] in this)].join("\n\n");
|
||||||
|
errors.push([new Date, obj + obj.stack]);
|
||||||
|
}
|
||||||
liberator.dump(obj);
|
liberator.dump(obj);
|
||||||
liberator.dump("");
|
liberator.dump("");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user