aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/follow.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/data/scripts/follow.js')
-rw-r--r--examples/data/scripts/follow.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/data/scripts/follow.js b/examples/data/scripts/follow.js
index 45ecfc6..88f80f2 100644
--- a/examples/data/scripts/follow.js
+++ b/examples/data/scripts/follow.js
@@ -288,11 +288,10 @@ uzbl.follow.elementSelected = function(el) {
// we're opening a new window using the URL attached to this element
var uri = el.src || el.href;
if(uri.match(/javascript:/)) return;
- window.open(uri);
- return "XXXRESET_MODEXXX"
+ return "XXXNEW_WINDOWXXX " + uri;
} else {
- // we're just going to click the element
- return this.clickElem(el);
+ // we're just going to click the element
+ return this.clickElem(el);
}
}