setLocalStorage

abstract suspend fun setLocalStorage(items: Map<String, String>)

Sets entries in the local storage of the page currently loaded in this tab.

Existing keys are overwritten, keys that are absent from items are left untouched. Use clearLocalStorage to empty the storage instead.

Parameters

items

The entries to write. Both keys and values are stored as strings.

Throws

IllegalStateException

if the tab has no target, so no origin to write to.