Dashboard Function
The wallet
object that the wallet subscription callback is called with now has a dashboard
parameter instead of the url
parameter. The url
parameter was a String
that is used to open a new window that would load the dashboard for SDK wallets. To make this more flexible we have changed this to dashboard
and to a Function
type so that if a SDK wallet has a function on the instance that will load the dashboard in the same window, then that can be called.
So if you are utilizing the url
parameter in you code currently, you will need to make the following changes:
// you might have a button that when clicked runs this onclick function...
// current code using url parameter
function onclick() {
if (wallet.type === 'sdk') {
wallet.url && window.open(wallet.url)
}
}
// new code using dashboard parameter
function onclick() {
if (wallet.type === 'sdk') {
wallet.dashboard && wallet.dashboard()
}
}
Also included in this release are a couple of small bug fixes via updates to both the Authereum and Unilogin dependencies.
Changelog: