test-unit-sauce
Brian Ford 10 years ago
parent 0c1edd6e58
commit 4a85f99679

File diff suppressed because it is too large Load Diff

@ -0,0 +1 @@
var hint = require('angular-hint');

@ -1,28 +1,12 @@
// inject into the application context from the content script context
var inject = function () {
var script = window.document.createElement('script');
script.innerHTML = '(' + instument.toString() + '(window))';
script.src = chrome.extension.getURL('hint.bundle.js');
document.head.appendChild(script);
};
// handle forwarding the events sent from the app context to the
// background page context
// var eventProxyElement = document.getElementById('__ngDebugElement');
// if (eventProxyElement) {
// eventProxyElement.addEventListener('myCustomEvent', function () {
// var eventData = JSON.parse(eventProxyElement.innerText);
// chrome.extension.sendMessage(eventData);
// });
// document.removeEventListener('DOMContentLoaded', inject);
// }
// only inject if cookie is set
if (document.cookie.indexOf('__ngDebug=true') != -1) {
document.addEventListener('DOMContentLoaded', inject);

@ -2,9 +2,6 @@
"name": "AngularJS Batarang",
"version": "0.5.0",
"description": "Extends the Developer Tools, adding tools for debugging and profiling AngularJS applications.",
"background": {
"page": "background/background.html"
},
"devtools_page": "background/devtoolsBackground.html",
"manifest_version": 2,
"permissions": [