status-mobile/resources/wallet.js

28 lines
576 B
JavaScript
Raw Normal View History

2016-10-29 20:02:49 +00:00
function wallet(params) {
2016-08-03 13:15:04 +00:00
var url = 'http://127.0.0.1:3450';
2016-10-29 20:02:49 +00:00
if (params.url && params.url !== "undefined" && params.url != "") {
url = params.url;
if (!/^[a-zA-Z-_]+:/.test(url)) {
url = 'http://' + url;
}
}
2016-08-03 13:15:04 +00:00
return {webViewUrl: url};
}
status.command({
name: "browse",
description: "Browse wallet",
2016-08-03 13:15:04 +00:00
color: "#ffa500",
fullscreen: true,
suggestionsTrigger: 'on-send',
params: [{
2016-10-29 20:02:49 +00:00
name: "url",
2016-08-03 13:15:04 +00:00
suggestions: wallet,
type: status.types.TEXT
}]
});
status.autorun("browse");