forked from x/ContextOS
10 lines
386 B
JavaScript
10 lines
386 B
JavaScript
{init: function(page, pane, field, option, output) {
|
|
this.Runs = function(event) {
|
|
var value = option.txt.value
|
|
var url = page.login.Pane.Share({cmds: ["qrcode", value]})
|
|
kit.AppendChilds(output, [{img: [url]}])
|
|
event.ctrlKey && page.target.Pane.Send("icon", url)
|
|
event.shiftKey && page.target.Pane.Send("field", this.Format(value))
|
|
}
|
|
}}
|