Skip to content
Permalink
Browse files

Added listener for new hit notifier events.

  • Loading branch information...
Kadauchi committed May 17, 2019
1 parent a33f8c9 commit 412703cadeb8a5719028580537a9f7a1abecad5d
Showing with 20 additions and 0 deletions.
  1. +13 −0 hitnotifier/listener.js
  2. +7 −0 manifest.json
@@ -0,0 +1,13 @@
document.addEventListener(`hitCatcher`, (event) => {
const hit = event.detail;

chrome.runtime.sendMessage({
hitCatcher: {
id: hit.id,
name: ``,
once: hit.once,
sound: hit.once,
project: hit.project
}
});
});
@@ -312,6 +312,13 @@
"js": ["mturk/workspace-expander.js"],
"matches": ["https://worker.mturk.com/projects/*/tasks/*"],
"run_at": "document_end"
},

{
"js": ["hitnotifier/listener.js"],
"matches": ["http://hitnotifier.com/*"],
"run_at": "document_end"
}

]
}

0 comments on commit 412703c

Please sign in to comment.
You can’t perform that action at this time.