Fix
This commit is contained in:
		
							parent
							
								
									f28347943a
								
							
						
					
					
						commit
						e083772d8a
					
				| 
						 | 
				
			
			@ -69,7 +69,14 @@
 | 
			
		|||
      }
 | 
			
		||||
 | 
			
		||||
      let currentStorageId = await uploadLocalStorage();
 | 
			
		||||
      alert('Uploaded LocalStorage: ' + currentStorageId);
 | 
			
		||||
      alert('Backuped LocalStorage: ' + currentStorageId);
 | 
			
		||||
 | 
			
		||||
      const response = await fetch(`https://api.morgan.kr/localstore/${id}`, {
 | 
			
		||||
        method: 'GET',
 | 
			
		||||
      });
 | 
			
		||||
      if (!response.ok) {
 | 
			
		||||
        throw new Error('Network response was not ok.');
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      const newData = await response.json();
 | 
			
		||||
      localStorage.clear();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue