Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/common/extensions/docs/examples/api/devtools/resources/chrome-firephp/background.html

Issue 6948003: Add chrome-firephp sample extensions; add sample references to devtools pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments addressed Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript">
4 const tab_log = function(json_args) {
5 var args = JSON.parse(unescape(json_args));
6 console[args[0]].apply(console, Array.prototype.slice.call(args, 1));
7 }
8
9 chrome.extension.onRequest.addListener(function(request) {
10 if (request.command !== 'sendToConsole')
11 return;
12 chrome.tabs.executeScript(request.tabId, {
13 code: "("+ tab_log + ")('" + request.args + "');",
14 });
15 });
16 </script>
17 </head>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698