phantom_proxy 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phantom_proxy/scripts/proxy.js +2 -2
- data/lib/phantom_proxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e54db6923f1a3b11a66f4efe03fde287c8f1e68d
|
4
|
+
data.tar.gz: b1e033a9a79ab80dc81947a1465b5be905907eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d76b819d63179dc9718ea332204d03dc1b48dc77059b0a238df4109133b8f4eebd69f890f55aa9804cd88dde7473aaad402a252a46b29b1c37ee82f84ee2c372
|
7
|
+
data.tar.gz: b0e28c6068abac4a46a4e483c337c7f674759bfea16cb3cead97498c456940f8888aa9fa9db1f8c9b0481d6b9d2f60f819068830d12f9a771724aebbaaf75037
|
@@ -14,13 +14,13 @@ function newIFrameLoad(page, load_iframes) {
|
|
14
14
|
var framestmp = document.getElementsByTagName('IFRAME');
|
15
15
|
var frames = [];
|
16
16
|
for (var i=0;i<framestmp.length;i++) {
|
17
|
-
if (framestmp[i].contentWindow.document.body) {
|
17
|
+
if (framestmp[i].contentWindow && framestmp[i].contentWindow.document && framestmp[i].contentWindow.document.body) {
|
18
18
|
frames.push(framestmp[i].contentWindow.document.body.innerHTML);
|
19
19
|
framestmp[i].outerHTML = "<phantomjsframe>PHANTOM_JS_FRAME_"+i+"</phantomjsframe>";
|
20
20
|
}
|
21
21
|
}
|
22
22
|
return frames;
|
23
|
-
});
|
23
|
+
}) || []; //This stops the code from crashing incase there is an exception during page eval
|
24
24
|
}
|
25
25
|
var content = new String(page.content);
|
26
26
|
for (var i=0;i<frame_data.length;i++) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phantom_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suddani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|