Skip to main content

Class: CrossDomainStorage

Types.CrossDomainStorage

Constructors

constructor

new CrossDomainStorage(iframe, remoteOrigin)

Parameters

NameType
iframenull | HTMLIFrameElement
remoteOriginundefined | string

Properties

remoteOrigin

remoteOrigin: undefined | string

Methods

localGetItem

localGetItem(key): Promise<null | string>

Parameters

NameType
keystring

Returns

Promise<null | string>


localSetItem

localSetItem(key, value): Promise<void>

Parameters

NameType
keystring
valuestring

Returns

Promise<void>


remoteGetItem

remoteGetItem(key): Promise<null | string>

Parameters

NameType
keystring

Returns

Promise<null | string>


remoteSetItem

remoteSetItem(key, value): Promise<void>

Parameters

NameType
keystring
valuestring

Returns

Promise<void>