Last active
May 5, 2018 07:08
-
-
Save AllenFang/aa8204ba3d8053b3b42572a8cc893a4d to your computer and use it in GitHub Desktop.
event.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { tabsActivatedFactory } from './tabs'; | |
import { DOMLoadedFactory } from './webNavigation'; | |
export default (store) => { | |
browser.tabs.onActivated.addListener(tabsActivatedFactory(store)); | |
browser.webNavigation.onDOMContentLoaded.addListener(DOMLoadedFactory(store)); | |
//... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment