aboutsummaryrefslogtreecommitdiff
path: root/src/content/components/frame-content.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/components/frame-content.js')
-rw-r--r--src/content/components/frame-content.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/content/components/frame-content.js b/src/content/components/frame-content.js
new file mode 100644
index 0000000..d2fb245
--- /dev/null
+++ b/src/content/components/frame-content.js
@@ -0,0 +1,16 @@
+import CommonComponent from './common';
+
+export default class FrameContent {
+
+ constructor(win, store) {
+ this.children = [new CommonComponent(win, store)];
+ }
+
+ update() {
+ this.children.forEach(c => c.update());
+ }
+
+ onMessage(message) {
+ this.children.forEach(c => c.onMessage(message));
+ }
+}