fix: missing property in browser backend and path to provider.js
Fix #3827
This commit is contained in:
parent
14b49b800a
commit
7fe218fc85
|
@ -77,7 +77,7 @@ Rectangle {
|
|||
userScripts: [
|
||||
WebEngineScript {
|
||||
injectionPoint: WebEngineScript.DocumentCreation
|
||||
sourceUrl: Qt.resolvedUrl("/helpers/provider.js")
|
||||
sourceUrl: Qt.resolvedUrl("./helpers/provider.js")
|
||||
worldId: WebEngineScript.MainWorld // TODO: check https://doc.qt.io/qt-5/qml-qtwebengine-webenginescript.html#worldId-prop
|
||||
}
|
||||
]
|
||||
|
@ -90,7 +90,7 @@ Rectangle {
|
|||
userScripts: [
|
||||
WebEngineScript {
|
||||
injectionPoint: WebEngineScript.DocumentCreation
|
||||
sourceUrl: Qt.resolvedUrl("/helpers/provider.js")
|
||||
sourceUrl: Qt.resolvedUrl("./helpers/provider.js")
|
||||
worldId: WebEngineScript.MainWorld // TODO: check https://doc.qt.io/qt-5/qml-qtwebengine-webenginescript.html#worldId-prop
|
||||
}
|
||||
]
|
||||
|
|
|
@ -12,6 +12,8 @@ QtObject {
|
|||
|
||||
signal web3Response(string data);
|
||||
|
||||
property int networkId: (Web3ProviderStore && Web3ProviderStore.networkId) || -1
|
||||
|
||||
function signValue(input){
|
||||
if(Utils.isHex(input) && Utils.startsWith0x(input)){
|
||||
return input
|
||||
|
|
Loading…
Reference in New Issue