fix(WalletConnect): Store web cookies and cache to a dedicated folder for each account
WalletConnect cannot operate on shared cookies in between accounts. This commit will split the cookies and cache in different folders with the user public key as folder name.
This commit is contained in:
parent
327eca96cb
commit
4d963031e9
|
@ -23,6 +23,7 @@ Item {
|
|||
|
||||
required property url url
|
||||
required property var webChannelObjects
|
||||
property string profileName: "Default"
|
||||
|
||||
// Used to control the loading of the web engine
|
||||
property bool active: false
|
||||
|
@ -48,6 +49,7 @@ Item {
|
|||
|
||||
url: root.url
|
||||
webChannel: statusChannel
|
||||
profile.storageName: root.profileName
|
||||
|
||||
onLoadingChanged: function(loadRequest) {
|
||||
switch(loadRequest.status) {
|
||||
|
|
|
@ -17,6 +17,7 @@ WalletConnectSDKBase {
|
|||
|
||||
// Enable the WalletConnect SDK
|
||||
property alias enableSdk: loader.active
|
||||
property alias userUID: loader.profileName
|
||||
readonly property alias url: loader.url
|
||||
|
||||
implicitWidth: 1
|
||||
|
|
|
@ -2162,7 +2162,7 @@ Item {
|
|||
|
||||
wcSDK: WalletConnectSDK {
|
||||
enableSdk: WalletStore.RootStore.walletSectionInst.walletReady
|
||||
|
||||
userUID: appMain.rootStore.profileSectionStore.profileStore.pubkey
|
||||
projectId: WalletStore.RootStore.appSettings.walletConnectProjectID
|
||||
}
|
||||
store: DAppsStore {
|
||||
|
|
Loading…
Reference in New Issue