support multi-frame following
This commit is contained in:
parent
4c9d0433a6
commit
ac5354020e
11 changed files with 234 additions and 95 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue