Skip to content

Commit fd163fa

Browse files
author
hoang.tran12
committed
tracking
1 parent 78cff0c commit fd163fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

popup/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ function initSettings() {
705705
}
706706

707707
async function backup() {
708+
trackEvent("BACKUP");
708709
const data = {
709710
localStorage,
710711
chromeStorage: await chrome.storage.local.get(),
@@ -751,6 +752,7 @@ async function restore() {
751752
}).then(async (result) => {
752753
if (result.isConfirmed) {
753754
try {
755+
trackEvent("RESTORE");
754756
const json = JSON.parse(result.value);
755757
const { localStorage: l, chromeStorage } = json;
756758

@@ -810,6 +812,7 @@ async function reset() {
810812
cancelButtonText: t({ en: "Cancel", vi: "Huỷ" }),
811813
}).then((result) => {
812814
if (result.isConfirmed) {
815+
trackEvent("RESET");
813816
localStorage.clear();
814817
chrome.storage.local.clear();
815818
chrome.runtime.reload();

0 commit comments

Comments
 (0)