Showing the changes to scripts/developer (1 of 1 file). Show all
Unified · Split
| @@ -26,6 +26,12 @@ · 25 unmodified lines | |||
| 26 | print(APP_NAME + ": " + message); | 26 | print(APP_NAME + ": " + message); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | function logDetails() { | ||
| 30 | return { | ||
| 31 | current_domain: location.placename | ||
| 32 | }; | ||
| 33 | } | ||
| 34 | |||
| 29 | RecordingIndicator = (function () { | 35 | RecordingIndicator = (function () { |
| 30 | // Displays "recording" overlay. | 36 | // Displays "recording" overlay. |
| 31 | 37 | ||
| @@ -169,6 +175,7 @@ · 137 unmodified lines | |||
| 169 | log("Finish recording: " + filename); | 175 | log("Finish recording: " + filename); |
| 170 | Recording.saveRecording(filename); | 176 | Recording.saveRecording(filename); |
| 171 | recordingState = IDLE; | 177 | recordingState = IDLE; |
| 178 | UserActivityLogger.logAction("ezrecord_finish_recording", logDetails()); | ||
| 172 | } | 179 | } |
| 173 | 180 | ||
| 174 | function stopRecording() { | 181 | function stopRecording() { |
| @@ -239,6 +246,8 @@ · 64 unmodified lines | |||
| 239 | } | 246 | } |
| 240 | 247 | ||
| 241 | Controller.keyPressEvent.connect(onKeyPressEvent); | 248 | Controller.keyPressEvent.connect(onKeyPressEvent); |
| 249 | |||
| 250 | UserActivityLogger.logAction("ezrecord_run_script", logDetails()); | ||
| 242 | } | 251 | } |
| 243 | 252 | ||
| 244 | function tearDown() { | 253 | function tearDown() { |