aboutsummaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-18 21:58:20 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-18 21:58:20 +0900
commit5b7f7f5dbd94b5bce7aee4667add187ffb9944f2 (patch)
treeb7dc4088e7fc6ff8d5fa7c98626f0bcea0f97c52 /src/content
parenta5518dce3d101cb1cb65724b82079f66f20c80c8 (diff)
Show console
Diffstat (limited to 'src/content')
-rw-r--r--src/content/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/index.ts b/src/content/index.ts
index 9b3d652..d644095 100644
--- a/src/content/index.ts
+++ b/src/content/index.ts
@@ -1,5 +1,6 @@
// import TopContentComponent from './components/top-content';
// import FrameContentComponent from './components/frame-content';
+import * as consoleFrames from './console-frames';
import consoleFrameStyle from './site-style';
// import { newStore } from './store';
import MessageListener from './MessageListener';
@@ -28,6 +29,9 @@ if (window.self === window.top) {
return findController.next(message);
case messages.FIND_PREV:
return findController.prev(message);
+ case messages.CONSOLE_UNFOCUS:
+ window.focus();
+ consoleFrames.blur(window.document);
}
return undefined;
});
@@ -44,6 +48,8 @@ if (window.self === window.top) {
}
return undefined;
});
+
+ consoleFrames.initialize(window.document);
} else {
// new FrameContentComponent(window, store); // eslint-disable-line no-new
}