25 lines
521 B
JavaScript
25 lines
521 B
JavaScript
|
I18n.translations = {
|
||
|
en: {
|
||
|
browse_title: 'Browser',
|
||
|
browse_description: 'Launch the browser'
|
||
|
}
|
||
|
};
|
||
|
|
||
|
status.command({
|
||
|
name: "browse",
|
||
|
title: I18n.t('browse_title'),
|
||
|
description: I18n.t('browse_description'),
|
||
|
color: "#ffa500",
|
||
|
fullscreen: true,
|
||
|
suggestionsTrigger: 'on-send',
|
||
|
params: [{
|
||
|
name: "url",
|
||
|
suggestions: function(params, context) {
|
||
|
return {webViewUrl: "dapp-url"};
|
||
|
},
|
||
|
type: status.types.TEXT
|
||
|
}]
|
||
|
});
|
||
|
|
||
|
status.autorun("browse");
|