mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
parent
54e291c75c
commit
b6fa6c366c
@ -1,6 +1,13 @@
|
||||
function wallet() {
|
||||
function wallet(params) {
|
||||
var url = 'http://127.0.0.1:3450';
|
||||
|
||||
if (params.url && params.url !== "undefined" && params.url != "") {
|
||||
url = params.url;
|
||||
if (!/^[a-zA-Z-_]+:/.test(url)) {
|
||||
url = 'http://' + url;
|
||||
}
|
||||
}
|
||||
|
||||
return {webViewUrl: url};
|
||||
}
|
||||
|
||||
@ -11,7 +18,7 @@ status.command({
|
||||
fullscreen: true,
|
||||
suggestionsTrigger: 'on-send',
|
||||
params: [{
|
||||
name: "webpage",
|
||||
name: "url",
|
||||
suggestions: wallet,
|
||||
type: status.types.TEXT
|
||||
}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user