Browse
For agents
About
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce
/
3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce
v3.3.0
Switch version
3.3.0
3.2.1
3.2.0
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.1
trunk
1.0.4
1.1.0
1.1.0.1
1.1.1
1.1.10
1.1.11
1.1.12
1.1.13
1.1.14
1.1.15
1.1.16
1.1.17
1.1.18
1.1.19
1.1.2
All 162 releases
Overview
Code
cartflows
/
modules
/
gutenberg
/
src
/
controls
/
getUAGEditorStateLocalStorage.js
getUAGEditorStateLocalStorage.js
in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/gutenberg/src/controls/getUAGEditorStateLocalStorage.js
21 lines
372 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
const
getUAGEditorStateLocalStorage
=
(
key
=
false
)
=>
{
2
if
(
!
window
.
localStorage
)
{
3
return
null
;
4
}
5
6
if
(
!
key
)
{
7
return
localStorage
;
8
}
9
10
const
uagLastOpenedSettingState
=
localStorage
.
getItem
(
key
)
;
11
12
if
(
uagLastOpenedSettingState
)
{
13
14
return
JSON
.
parse
(
uagLastOpenedSettingState
)
15
}
16
17
return
null
;
18
}
;
19
20
export
default
getUAGEditorStateLocalStorage
;
21