mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 10:29:01 +03:00
extensible urb.onupdate
This commit is contained in:
parent
86a423b4d4
commit
05e37b73b6
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user