aws/aws-sdk-js — pull request #365 by darbs (2014-09-22 16:55:12+00:00)
Title: Default to empty object if localStorage is not accessible.

Add try and catch block to account for instances when the localStorage exists but is not accessible. For example if the user has their browser set to block cookies and site data.