Move phantomas_custom to the phantomas tool directory

This commit is contained in:
Gaël Métais
2014-12-28 18:05:10 +01:00
parent e9505f31f7
commit dccb9bb49c
13 changed files with 7 additions and 7 deletions
@@ -0,0 +1,29 @@
/**
* Meters the number of page errors, and provides traces as offenders for "jsErrors" metric
*/
exports.version = '0.0';
exports.module = function(phantomas) {
'use strict';
/*phantomas.on('recv', function(entry, res) {
if (!entry.isJS) {
return;
}
// Yeah, this is weird, i'm sending the information back to the browser...
phantomas.evaluate(function(url) {
(function(phantomas) {
phantomas.pushContext({
type: 'script loaded',
callDetails: {
arguments: [url]
}
});
})(window.__phantomas);
}, entry.url);
});*/
};