Skip to content
Commit f141433f authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: rpc.js: revamp error handling, add interceptor support



Add two new functions L.rpc.addInterceptor() and L.rpc.removeInterceptor()
which allow to register and remove interceptor functions which are invoked
before the rpc reply result promise is fulfilled.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 43d8e98a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment