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() {
705705}
706706
707707async 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 ( ) ;
You can’t perform that action at this time.
0 commit comments