mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 07:12:45 +02:00
Add user activity logging
This commit is contained in:
parent
3de1c0a312
commit
48caad1ad2
1 changed files with 9 additions and 0 deletions
|
@ -26,6 +26,12 @@
|
|||
print(APP_NAME + ": " + message);
|
||||
}
|
||||
|
||||
function logDetails() {
|
||||
return {
|
||||
current_domain: location.placename
|
||||
};
|
||||
}
|
||||
|
||||
RecordingIndicator = (function () {
|
||||
// Displays "recording" overlay.
|
||||
|
||||
|
@ -169,6 +175,7 @@
|
|||
log("Finish recording: " + filename);
|
||||
Recording.saveRecording(filename);
|
||||
recordingState = IDLE;
|
||||
UserActivityLogger.logAction("ezrecord_finish_recording", logDetails());
|
||||
}
|
||||
|
||||
function stopRecording() {
|
||||
|
@ -239,6 +246,8 @@
|
|||
}
|
||||
|
||||
Controller.keyPressEvent.connect(onKeyPressEvent);
|
||||
|
||||
UserActivityLogger.logAction("ezrecord_run_script", logDetails());
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
|
|
Loading…
Reference in a new issue