remove actions from content

This commit is contained in:
Shin'ya Ueoka 2017-09-16 21:28:21 +09:00
parent c7a3dd16e6
commit 27702ef402
4 changed files with 12 additions and 27 deletions

View file

@ -1,5 +1,4 @@
import './console-frame.scss';
import * as consoleActions from '../actions/console';
const initialize = (doc) => {
let iframe = doc.createElement('iframe');
@ -11,17 +10,9 @@ const initialize = (doc) => {
return iframe;
}
const showCommand = (text) => {
return browser.runtime.sendMessage(consoleActions.showCommand(text));
};
const showError = (text) => {
return browser.runtime.sendMessage(consoleActions.showError(text));
}
const blur = (doc) => {
let iframe = doc.getElementById('vimvixen-console-frame');
iframe.blur();
}
export { initialize, showCommand, showError, blur };
export { initialize, blur };