mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-05 21:14:13 -04:00
Merge branch 'ARI-5980' into qa
This commit is contained in:
commit
f4c57f5d30
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// we have problems if the page has changed the definition of Set or Array
|
// we have problems if the page has changed the definition of Set or Array
|
||||||
// http://www.polyvore.com/ does this for example
|
// http://www.polyvore.com/ does this for example
|
||||||
var __brzl_framesDone = new Set();
|
var __brzl_framesDone = new Set();
|
||||||
var __brzl_popup_re = /window.open\(.*?(['"])((?:https?)?\/\/.*?)\1,/
|
var __brzl_popup_re = /window.open\(\s*(['"])(.*?)\1/
|
||||||
var __brzl_compileOutlinks = function(frame) {
|
var __brzl_compileOutlinks = function(frame) {
|
||||||
__brzl_framesDone.add(frame);
|
__brzl_framesDone.add(frame);
|
||||||
var outlinks = [];
|
var outlinks = [];
|
||||||
|
@ -18,7 +18,6 @@ var __brzl_compileOutlinks = function(frame) {
|
||||||
outlinks.push(m[2]);
|
outlinks.push(m[2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
outlinks = outlinks.concat(popups);
|
|
||||||
}
|
}
|
||||||
for (var i = 0; i < frame.frames.length; i++) {
|
for (var i = 0; i < frame.frames.length; i++) {
|
||||||
if (frame.frames[i] && !__brzl_framesDone.has(frame.frames[i])) {
|
if (frame.frames[i] && !__brzl_framesDone.has(frame.frames[i])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue