mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update toolkit.js #21
This commit is contained in:
parent
7563e0abd1
commit
7d4467fe22
|
@ -41,4 +41,18 @@ exports.sendClick = function(wName, x, y, repeat) {
|
|||
|
||||
exports.sendKeys = function(wName, s) {
|
||||
return Toolkit.getInterface().SendKeys(wName, s);
|
||||
};
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
|
||||
|
||||
exports.alert = function(message) {
|
||||
return Toolkit.getInterface().Alert(message);
|
||||
};
|
||||
|
||||
exports.confirm = function(message) {
|
||||
return Toolkit.getInterface().Confirm(message);
|
||||
};
|
||||
|
||||
exports.prompt = function(message, _default) {
|
||||
return Toolkit.getInterface().Prompt(message, _default);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user