Moved all the files around and added livereloading to the extension.
@ -1,5 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<script src="background.js"></script>
|
<script src="background.js"></script>
|
||||||
|
<script src="chromereload.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,4 +1,4 @@
|
|||||||
|
console.log("LOADING BATARANG BACKGROUND.JS");
|
||||||
// scopes need to be cached here so that if the devtools connects,
|
// scopes need to be cached here so that if the devtools connects,
|
||||||
// the list of scopes can be immediately populated
|
// the list of scopes can be immediately populated
|
||||||
// TODO: clear this on refresh ?
|
// TODO: clear this on refresh ?
|
@ -0,0 +1,23 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
// Reload client for Chrome Apps & Extensions.
|
||||||
|
// The reload client has a compatibility with livereload.
|
||||||
|
// WARNING: only supports reload command.
|
||||||
|
|
||||||
|
var LIVERELOAD_HOST = 'localhost:';
|
||||||
|
var LIVERELOAD_PORT = 35729;
|
||||||
|
var connection = new WebSocket('ws://' + LIVERELOAD_HOST + LIVERELOAD_PORT + '/livereload');
|
||||||
|
|
||||||
|
connection.onerror = function (error) {
|
||||||
|
console.log('reload connection got error' + JSON.stringify(error));
|
||||||
|
};
|
||||||
|
|
||||||
|
connection.onmessage = function (e) {
|
||||||
|
if (e.data) {
|
||||||
|
var data = JSON.parse(e.data);
|
||||||
|
if (data && data.command === 'reload') {
|
||||||
|
|
||||||
|
chrome.runtime.reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript" src="devtoolsBackground.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 235 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 248 KiB After Width: | Height: | Size: 248 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "AngularJS Batarang",
|
"name": "AngularJS Batarang",
|
||||||
"version": "0.4.3",
|
"version": "0.5.0",
|
||||||
"description": "Extends the Developer Tools, adding tools for debugging and profiling AngularJS applications.",
|
"description": "Extends the Developer Tools, adding tools for debugging and profiling AngularJS applications.",
|
||||||
"background": {
|
"background": {
|
||||||
"page": "background.html"
|
"page": "background/background.html"
|
||||||
},
|
},
|
||||||
"devtools_page": "devtoolsBackground.html",
|
"devtools_page": "background/devtoolsBackground.html",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"tabs",
|
"tabs",
|
@ -1,5 +0,0 @@
|
|||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script src="devtoolsBackground.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|