diff options
Diffstat (limited to 'src/content/components/frame-content.js')
-rw-r--r-- | src/content/components/frame-content.js | 16 |
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..46786d2 --- /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, sender) { + this.children.forEach(c => c.onMessage(message, sender)); + } +} |