Skip to content

Commit 9b2da85

Browse files
committed
Adding debugging info
1 parent f4d9cd5 commit 9b2da85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

check_mixedcontent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
echo "Running mixed content report"
44
# e.g. arg could be _site for a jekyll site
5-
find $1 -name "*.html" | xargs phantomjs report-mixed-content.js ;
5+
find $1 -name "*.html" | xargs phantomjs --web-security=false --disk-cache=true --ignore-ssl-errors=false --load-images=true --output-encoding=utf-8 report-mixed-content.js ;
66
echo "report finsihed."

report-mixed-content.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env phantomjs --disk-cache=true --ignore-ssl-errors=false --load-images=true --output-encoding=utf-8
1+
#!/usr/bin/env phantomjs --web-security=false --disk-cache=true --ignore-ssl-errors=false --load-images=true --output-encoding=utf-8
22
'use strict';
33

44
var system = require('system'),
@@ -43,7 +43,7 @@ function initPage() {
4343

4444
page.onConsoleMessage = function(msg) {
4545
if (msg == 'GOTO_NEXT_PAGE') {
46-
//page.close();
46+
page.close();
4747
//crawlNextPage();
4848
} else if (msg.indexOf('insecure content from') >= 0) {
4949
// We can format WebKit's native error messages nicely:
@@ -63,6 +63,7 @@ function crawlNextPage() {
6363
}
6464

6565
var url = URLs.shift();
66+
console.log('Checking ' + url);
6667
var page = initPage();
6768

6869
page.originalURL = url;

0 commit comments

Comments
 (0)