From e6be838e79101cb3abc2e95fa150fc4b0e841930 Mon Sep 17 00:00:00 2001 From: utkarshgautamnyu Date: Wed, 28 Jun 2017 15:30:49 -0700 Subject: [PATCH 1/2] Update snapshot.js --- scripts/system/snapshot.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index c60e3a67f7..e033ba9f44 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -504,7 +504,14 @@ function takeSnapshot() { Window.takeSnapshot(false, includeAnimated, 1.91); }, SNAPSHOT_DELAY); }, FINISH_SOUND_DELAY); +UserActivityLogger.logAction("snapshot_taken", logDetails()); } + + function logDetails() { + return { + current_domain: location.href + }; + } function isDomainOpen(id, callback) { print("Checking open status of domain with ID:", id); From 82597ac4243df799eec18c095474f4501f9ef6d0 Mon Sep 17 00:00:00 2001 From: utkarshgautamnyu Date: Fri, 30 Jun 2017 10:22:05 -0700 Subject: [PATCH 2/2] Update snapshot.js --- scripts/system/snapshot.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index e033ba9f44..c2dc682a97 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -504,15 +504,9 @@ function takeSnapshot() { Window.takeSnapshot(false, includeAnimated, 1.91); }, SNAPSHOT_DELAY); }, FINISH_SOUND_DELAY); -UserActivityLogger.logAction("snapshot_taken", logDetails()); + UserActivityLogger.logAction("snaphshot_taken", { location: location.href }); } - function logDetails() { - return { - current_domain: location.href - }; - } - function isDomainOpen(id, callback) { print("Checking open status of domain with ID:", id); var status = false;