From 05e37b73b67012e834becb71a9d4ae6601254cc6 Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Fri, 11 Sep 2015 12:20:19 -0700 Subject: [PATCH] extensible urb.onupdate --- arvo/eyre.hoon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arvo/eyre.hoon b/arvo/eyre.hoon index fc286b44de..8d0b4f3c16 100644 --- a/arvo/eyre.hoon +++ b/arvo/eyre.hoon @@ -355,7 +355,7 @@ if(this.status !== 205) { return urb.keep() } - document.location.reload() + urb.onupdate() }) urb.wreq.addEventListener('error', urb.keep) urb.wreq.addEventListener('abort', urb.keep) @@ -365,6 +365,7 @@ setTimeout(urb.call,1000*urb.tries) urb.tries++ } + urb.onupdate = function(){document.location.reload()} urb.call() urb.wasp = function(deh){ var old = /[^/]*$/.exec(urb.wurl)[0]