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({
|
2016-10-18 11:01:22 +00:00
|
|
|
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
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
|
2016-10-18 11:01:22 +00:00
|
|
|
status.autorun("browse");
|