phantom_proxy 1.3.7 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eb289ff10597ddb812b7c0f9aebcc0b0f292394
4
- data.tar.gz: db10b832ce00186c0c60a1adf31e52725baf578d
3
+ metadata.gz: e54db6923f1a3b11a66f4efe03fde287c8f1e68d
4
+ data.tar.gz: b1e033a9a79ab80dc81947a1465b5be905907eb1
5
5
  SHA512:
6
- metadata.gz: 734e8f48611f47f89a1993af1510e49e5f066e7c5b75c83e0cec930b449917956e71f6af7a420e89a5df900414264bfb87ae7ae36bd82c6923f63ea67154e65e
7
- data.tar.gz: 69d0d566be8ccc235592368780b7d9c3f7be43076474ba48b7d66ba7696782517de18150a55e77f92604dc23b115cf3068e563c5fbcaf35a9d317e668b6359ac
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++) {
@@ -1,3 +1,3 @@
1
1
  module PhantomProxy
2
- VERSION = "1.3.7"
2
+ VERSION = "1.3.8"
3
3
  end
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.7
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-04 00:00:00.000000000 Z
11
+ date: 2015-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json