mirror of
https://github.com/urbit/shrub.git
synced 2025-01-06 04:07:23 +03:00
extensible urb.onupdate
This commit is contained in:
parent
86a423b4d4
commit
05e37b73b6
@ -355,7 +355,7 @@
|
|||||||
if(this.status !== 205) {
|
if(this.status !== 205) {
|
||||||
return urb.keep()
|
return urb.keep()
|
||||||
}
|
}
|
||||||
document.location.reload()
|
urb.onupdate()
|
||||||
})
|
})
|
||||||
urb.wreq.addEventListener('error', urb.keep)
|
urb.wreq.addEventListener('error', urb.keep)
|
||||||
urb.wreq.addEventListener('abort', urb.keep)
|
urb.wreq.addEventListener('abort', urb.keep)
|
||||||
@ -365,6 +365,7 @@
|
|||||||
setTimeout(urb.call,1000*urb.tries)
|
setTimeout(urb.call,1000*urb.tries)
|
||||||
urb.tries++
|
urb.tries++
|
||||||
}
|
}
|
||||||
|
urb.onupdate = function(){document.location.reload()}
|
||||||
urb.call()
|
urb.call()
|
||||||
urb.wasp = function(deh){
|
urb.wasp = function(deh){
|
||||||
var old = /[^/]*$/.exec(urb.wurl)[0]
|
var old = /[^/]*$/.exec(urb.wurl)[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user