content operations

This commit is contained in:
Shin'ya Ueoka 2017-09-13 21:55:09 +09:00
parent b6e5153c1f
commit a61f37ad61
8 changed files with 62 additions and 58 deletions

View file

@ -21,7 +21,10 @@ export function exec(operation, sender) {
case operations.ZOOM_NEUTRAL:
return zooms.neutral();
default:
return Promise.resolve();
return browser.tabs.sendMessage(sender.tab.id, {
type: 'require.content.operation',
operation
});
}
}