aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-16 21:48:41 +0900
committerGitHub <noreply@github.com>2017-10-16 21:48:41 +0900
commit33a97a0e8c18c099b23cd50a832242985837edca (patch)
tree73a15a1a39b41e0c42ea79a2d521d63865f83f06 /src/content/actions
parent7ced514f83a69f557c19c1eb24ad792b3f2ace89 (diff)
parentcf3a1eaf16d7dd5c71de57901415fb147793aa56 (diff)
Merge pull request #61 from ueokande/multi-frame-following
Multi frame following
Diffstat (limited to 'src/content/actions')
-rw-r--r--src/content/actions/operation.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content/actions/operation.js b/src/content/actions/operation.js
index 3aa9c1f..81bcc2f 100644
--- a/src/content/actions/operation.js
+++ b/src/content/actions/operation.js
@@ -3,7 +3,6 @@ import messages from 'shared/messages';
import * as scrolls from 'content/scrolls';
import * as navigates from 'content/navigates';
import * as urls from 'content/urls';
-import * as followActions from 'content/actions/follow';
import * as consoleFrames from 'content/console-frames';
const exec = (operation) => {
@@ -23,7 +22,10 @@ const exec = (operation) => {
case operations.SCROLL_END:
return scrolls.scrollEnd(window);
case operations.FOLLOW_START:
- return followActions.enable(operation.newTab);
+ return window.top.postMessage(JSON.stringify({
+ type: messages.FOLLOW_START,
+ newTab: operation.newTab
+ }), '*');
case operations.NAVIGATE_HISTORY_PREV:
return navigates.historyPrev(window);
case operations.NAVIGATE_HISTORY_NEXT: