mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Convert stringified timestamps from D-Bus to integers
We already had the symmetrical code to convert numerical timestamps to strings before sending out D-Bus requests, anyway. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
parent
23bf5db80c
commit
23d1d18619
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ Event.fromPlain = function(rawEvent) {
|
|||
subjects, // subjects
|
||||
rawEvent[2]);// payload
|
||||
event.id = rawEvent[0][0]; // id
|
||||
event.timestamp = rawEvent[0][1]; // timestamp
|
||||
event.timestamp = parseInt(rawEvent[0][1], 10); // timestamp - it comes as a string over d-bus (yuck)
|
||||
return event;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue