forked from angular/batarang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): implement connection between content script and devTools pane
- Loading branch information
Carlo s A. Guillen
committed
Aug 7, 2014
1 parent
2ebab66
commit e81023b
Showing
11 changed files
with
4,743 additions
and
757 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
chrome.runtime.onConnect.addListener(function(port) { | ||
|
||
// context script –> background | ||
chrome.runtime.onMessage.addListener(function(msg, sender, sendResponse) { | ||
port.postMessage(msg); | ||
}); | ||
}); |
Oops, something went wrong.