forked from marva/sumorobot-web
		
	Update utils.js
This commit is contained in:
		@@ -6,7 +6,7 @@ function getLocalStorageItem(item) {
 | 
			
		||||
    try {
 | 
			
		||||
        return localStorage.getItem(item);
 | 
			
		||||
    // Failed to access localStorage
 | 
			
		||||
    } catch {
 | 
			
		||||
    } catch(err) {
 | 
			
		||||
        // Return empty result
 | 
			
		||||
        return "";
 | 
			
		||||
    }
 | 
			
		||||
@@ -20,5 +20,5 @@ function setLocalStorageItem(item, value) {
 | 
			
		||||
    try {
 | 
			
		||||
        localStorage.setItem(item, value)
 | 
			
		||||
    // Failed to access localStorage
 | 
			
		||||
    } catch {}
 | 
			
		||||
    } catch(err) {}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user