show error on find and wrap search
This commit is contained in:
parent
6db2458929
commit
12db4943ee
4 changed files with 83 additions and 15 deletions
|
@ -1,4 +1,5 @@
|
|||
import './console-frame.scss';
|
||||
import messages from 'shared/messages';
|
||||
|
||||
const initialize = (doc) => {
|
||||
let iframe = doc.createElement('iframe');
|
||||
|
@ -20,4 +21,11 @@ const postMessage = (doc, message) => {
|
|||
iframe.contentWindow.postMessage(JSON.stringify(message), '*');
|
||||
};
|
||||
|
||||
export { initialize, blur, postMessage };
|
||||
const postError = (doc, message) => {
|
||||
return postMessage(doc, {
|
||||
type: messages.CONSOLE_SHOW_ERROR,
|
||||
text: message,
|
||||
});
|
||||
};
|
||||
|
||||
export { initialize, blur, postMessage, postError };
|
||||
|
|
Reference in a new issue