aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-20 21:19:42 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-20 21:19:42 +0900
commit355da18d3d6232620ebd7548f8d41b6f1af5aa08 (patch)
tree7887a63b5f521ea20ac99b6698c1d171e02a1335 /src/content/index.js
parent99c1b831330462442e4c41553c29887ecdd96583 (diff)
add follow fot a tags
Diffstat (limited to 'src/content/index.js')
-rw-r--r--src/content/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/index.js b/src/content/index.js
index 17ab308..78389fd 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -1,5 +1,6 @@
import * as scrolls from './scrolls';
import FooterLine from './footer-line';
+import Follow from './follow';
import * as actions from '../shared/actions';
var footer = null;
@@ -52,6 +53,9 @@ const invokeEvent = (action) => {
case actions.SCROLL_BOTTOM:
scrolls.scrollBottom(window, action[1]);
break;
+ case actions.FOLLOW_START:
+ new Follow(window.document, action[1] || false);
+ break;
}
}