Index: chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.js |
diff --git a/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html b/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.js |
similarity index 69% |
copy from chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html |
copy to chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.js |
index 4e382a6ff14972da14f409f8c2cd9f9b30bfabad..8496dcb9c52bef5adbf3e5cfd8fd2887670ccc04 100644 |
--- a/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.html |
+++ b/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/background.js |
@@ -1,6 +1,7 @@ |
-<html> |
-<head> |
-<script type="text/javascript"> |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
const tab_log = function(json_args) { |
var args = JSON.parse(unescape(json_args)); |
console[args[0]].apply(console, Array.prototype.slice.call(args, 1)); |
@@ -13,6 +14,3 @@ chrome.extension.onRequest.addListener(function(request) { |
code: "("+ tab_log + ")('" + request.args + "');", |
}); |
}); |
-</script> |
-</head> |
-</html> |