File "getUAGEditorStateLocalStorage.js"
Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/ultimate-addons-for-gutenberg/blocks-config/uagb-controls/getUAGEditorStateLocalStorage.js
File size: 372 bytes
MIME-type: text/plain
Charset: utf-8
const getUAGEditorStateLocalStorage = ( key = false ) => {
if ( ! window.localStorage ) {
return null;
}
if ( ! key ) {
return localStorage;
}
const uagLastOpenedSettingState = localStorage.getItem( key );
if ( uagLastOpenedSettingState ) {
return JSON.parse( uagLastOpenedSettingState );
}
return null;
};
export default getUAGEditorStateLocalStorage;