Class: CrossDomainStorage
Types.CrossDomainStorage
Constructors
constructor
• new CrossDomainStorage(iframe
, remoteOrigin
)
Parameters
Name | Type |
---|---|
iframe | null | HTMLIFrameElement |
remoteOrigin | undefined | string |
Properties
remoteOrigin
• remoteOrigin: undefined
| string
Methods
localGetItem
▸ localGetItem(key
): Promise
<null
| string
>
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<null
| string
>
localSetItem
▸ localSetItem(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | string |
Returns
Promise
<void
>
remoteGetItem
▸ remoteGetItem(key
): Promise
<null
| string
>
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<null
| string
>
remoteSetItem
▸ remoteSetItem(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | string |
Returns
Promise
<void
>