@@ -428,7 +428,7 @@ var CustomFunction = {
428428	// This Function is called when Record_stop button is pressed 
429429	SaveCaseDataAsJson ( )  { 
430430		setTimeout ( ( ) => { 	// Setting 0.5 sec so that the last action is saved properly in storage.local 
431- 			chrome . storage . local . get ( null ,  function  ( result )  { 
431+ 			browserAppData . storage . local . get ( null ,  function  ( result )  { 
432432				try  { 
433433					if  ( ! result . recorded_actions )  return ; 
434434					CustomFunction . FetchChromeCaseData ( ) 
@@ -1021,7 +1021,7 @@ var CustomFunction = {
10211021
10221022	async  FetchChromeCaseData ( )  { 
10231023		CustomFunction . caseDataArr  =  { } ; 
1024- 		result  =  await  chrome . storage . local . get ( null ) ; 
1024+ 		result  =  await  browserAppData . storage . local . get ( null ) ; 
10251025		try  { 
10261026			if  ( result . case_data )  { 
10271027				CustomFunction . caseDataArr  =  result . case_data ; 
@@ -1296,7 +1296,7 @@ var CustomFunction = {
12961296
12971297		/* Mange playing speed */ 
12981298		/* initial time set speed */ 
1299- 		chrome . storage . local . get ( null ,  function  ( result )  { 
1299+ 		browserAppData . storage . local . get ( null ,  function  ( result )  { 
13001300			try  { 
13011301				if  ( result . speed_data )  { 
13021302					var  speed_data  =  result . speed_data ; 
@@ -1389,6 +1389,7 @@ var CustomFunction = {
13891389		/* Save all newlly recorded actions with old actions and auto naming */ 
13901390		$ ( document ) . on ( 'click' ,  '#save_button' ,  async  function  ( )  { 
13911391			$ ( '#save_label' ) . text ( 'Saving...' ) ; 
1392+ 			$ ( "#save_button" ) . attr ( 'disabled' ,  true ) . css ( 'opacity' , 0.5 ) ; 
13921393			CustomFunction . FetchChromeCaseData ( ) 
13931394			. then ( async  ( ) => { 
13941395				var  result  =  await  browserAppData . storage . local . get ( [ "meta_data" ] ) ; 
@@ -1418,7 +1419,10 @@ var CustomFunction = {
14181419					success : function ( response )  { 
14191420					    console . log ( response ) ; 
14201421						$ ( '#save_label' ) . text ( 'Success!' ) ; 
1421- 					    setTimeout ( ( ) => $ ( '#save_label' ) . text ( 'Save' ) , 1500 ) 
1422+ 					    setTimeout ( ( ) => { 
1423+ 							$ ( '#save_label' ) . text ( 'Save' ) ; 
1424+ 							$ ( "#save_button" ) . removeAttr ( 'disabled' ) . css ( 'opacity' , 1 ) ; 
1425+ 						} , 1500 ) 
14221426					} , 
14231427					error : function ( jqXHR ,  textStatus ,  errorThrown )  { 
14241428						console . log ( errorThrown ) ; 
@@ -1819,7 +1823,7 @@ var CustomFunction = {
18191823						selectedCase  =  $ ( this ) . data ( 'mainindex' ) ;  //action 
18201824						selectedStep  =  $ ( this ) . data ( 'stepindex' ) ; 
18211825
1822- 						/* Update the chrome  case date as disable */ 
1826+ 						/* Update the browserAppData  case date as disable */ 
18231827						var  textValue  =  1 ; 
18241828						var  case_command  =  'is_disable' ; 
18251829						var  case_index  =  $ ( this ) . data ( 'mainindex' ) ; 
@@ -1881,7 +1885,7 @@ var CustomFunction = {
18811885
18821886						if  ( ! $ ( '.parent_step'  +  selectedStep ) . hasClass ( 'disabled-case' ) )  { 
18831887
1884- 							/* Update the chrome  case date as disable */ 
1888+ 							/* Update the browserAppData  case date as disable */ 
18851889							var  textValue  =  0 ; 
18861890							var  case_command  =  'is_disable' ; 
18871891							var  case_index  =  $ ( this ) . data ( 'mainindex' ) ; 
@@ -2327,7 +2331,7 @@ var CustomFunction = {
23272331			document . getElementById ( section ) . style . display  =  "block" ; 
23282332		} ) 
23292333
2330- 		chrome . storage . local . get ( null ,  function  ( result )  { 
2334+ 		browserAppData . storage . local . get ( null ,  function  ( result )  { 
23312335			try  { 
23322336				if  ( result . is_initial_app_open )  { 
23332337					$ ( '.close_main_page' ) . trigger ( 'click' ) ; 
@@ -2342,7 +2346,7 @@ var CustomFunction = {
23422346
23432347	InitialTimeCheckAuthUserOrNot ( )  { 
23442348		/* fetch username and password for browser storage */ 
2345- 		chrome . storage . local . get ( null ,  function  ( result )  { 
2349+ 		browserAppData . storage . local . get ( null ,  function  ( result )  { 
23462350			try  { 
23472351				if  ( result . auth_data )  { 
23482352					var  auth_data  =  result . auth_data ; 
0 commit comments