Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RedisInsight-plugin-sdk

This document describes the high-level API for communication between RedisInsight
The high-level API for communication between RedisInsight
plugin and RedisInsight application.

## Usage
Expand Down Expand Up @@ -63,7 +63,7 @@ try {

### getState()

Returns the_saved state for the command visualization.
Returns saved state for the command visualization.

Throw an error if the state has not been saved.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { sendMessageToMain } from './helpers'
import { POST_MESSAGE_EVENTS } from './events'

const { config, callbacks = { counter: 0 } } = window.state
const { iframeId } = config
const { config, callbacks = { counter: 0 } } = window.state || {}
const { iframeId } = config || {}

/**
* Set text to the header result
Expand Down