File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -705,6 +705,7 @@ function initSettings() {
705
705
}
706
706
707
707
async function backup ( ) {
708
+ trackEvent ( "BACKUP" ) ;
708
709
const data = {
709
710
localStorage,
710
711
chromeStorage : await chrome . storage . local . get ( ) ,
@@ -751,6 +752,7 @@ async function restore() {
751
752
} ) . then ( async ( result ) => {
752
753
if ( result . isConfirmed ) {
753
754
try {
755
+ trackEvent ( "RESTORE" ) ;
754
756
const json = JSON . parse ( result . value ) ;
755
757
const { localStorage : l , chromeStorage } = json ;
756
758
@@ -810,6 +812,7 @@ async function reset() {
810
812
cancelButtonText : t ( { en : "Cancel" , vi : "Huỷ" } ) ,
811
813
} ) . then ( ( result ) => {
812
814
if ( result . isConfirmed ) {
815
+ trackEvent ( "RESET" ) ;
813
816
localStorage . clear ( ) ;
814
817
chrome . storage . local . clear ( ) ;
815
818
chrome . runtime . reload ( ) ;
You can’t perform that action at this time.
0 commit comments