mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-19 18:18:38 +00:00
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: [
|
userScripts: [
|
||||||
WebEngineScript {
|
WebEngineScript {
|
||||||
injectionPoint: WebEngineScript.DocumentCreation
|
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
|
worldId: WebEngineScript.MainWorld // TODO: check https://doc.qt.io/qt-5/qml-qtwebengine-webenginescript.html#worldId-prop
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -90,7 +90,7 @@ Rectangle {
|
|||||||
userScripts: [
|
userScripts: [
|
||||||
WebEngineScript {
|
WebEngineScript {
|
||||||
injectionPoint: WebEngineScript.DocumentCreation
|
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
|
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);
|
signal web3Response(string data);
|
||||||
|
|
||||||
|
property int networkId: (Web3ProviderStore && Web3ProviderStore.networkId) || -1
|
||||||
|
|
||||||
function signValue(input){
|
function signValue(input){
|
||||||
if(Utils.isHex(input) && Utils.startsWith0x(input)){
|
if(Utils.isHex(input) && Utils.startsWith0x(input)){
|
||||||
return input
|
return input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user