fix #394
This commit is contained in:
parent
fc274a5e52
commit
58aaacf044
|
@ -1,6 +1,13 @@
|
||||||
function wallet() {
|
function wallet(params) {
|
||||||
var url = 'http://127.0.0.1:3450';
|
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};
|
return {webViewUrl: url};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +18,7 @@ status.command({
|
||||||
fullscreen: true,
|
fullscreen: true,
|
||||||
suggestionsTrigger: 'on-send',
|
suggestionsTrigger: 'on-send',
|
||||||
params: [{
|
params: [{
|
||||||
name: "webpage",
|
name: "url",
|
||||||
suggestions: wallet,
|
suggestions: wallet,
|
||||||
type: status.types.TEXT
|
type: status.types.TEXT
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in New Issue