message constants

This commit is contained in:
Shin'ya Ueoka 2017-09-16 20:26:13 +09:00
parent 83cb277ba2
commit c7a3dd16e6
5 changed files with 10 additions and 5 deletions

View file

@ -1,4 +1,5 @@
import operations from '../operations';
import messages from '../messages';
import * as consoleActions from './console';
import * as tabs from '../background/tabs';
import * as zooms from '../background/zooms';
@ -34,7 +35,7 @@ export function exec(operation, tab) {
return consoleActions.showCommand('buffer ');
default:
return browser.tabs.sendMessage(tab.id, {
type: 'require.content.operation',
type: messages.CONTENT_OPERATION,
operation
});
}