Merge pull request #6756 from joeflynn/quota-exceeded

ensure storage is writable when setting support flag. fixes #6755
This commit is contained in:
Mike Jolley 2014-11-17 14:28:49 +00:00
commit f883f62eaf
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ jQuery( function( $ ) {
/** Cart Handling */
try {
$supports_html5_storage = ( 'sessionStorage' in window && window.sessionStorage !== null );
window.sessionStorage.setItem( 'wc', 'test' );
window.sessionStorage.removeItem( 'wc' );
} catch( err ) {
$supports_html5_storage = false;
}