Update toolkit.js

This commit is contained in:
Namhyeon Go 2022-02-28 17:51:23 +09:00 committed by GitHub
parent ec0873e0d4
commit 9280803861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,19 +38,19 @@ exports.sendClick = function(wName, x, y, retry) {
}; };
exports.sendKeys = function(wName, s) { exports.sendKeys = function(wName, s) {
return Toolkit.getInterface().SendKeys(wName, s); return exports.getInterface().SendKeys(wName, s);
}; };
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
exports.alert = function(message) { exports.alert = function(message) {
return Toolkit.getInterface().Alert(message); return exports.getInterface().Alert(message);
}; };
exports.confirm = function(message) { exports.confirm = function(message) {
return Toolkit.getInterface().Confirm(message); return exports.getInterface().Confirm(message);
}; };
exports.prompt = function(message, _default) { exports.prompt = function(message, _default) {
return Toolkit.getInterface().Prompt(message, _default); return exports.getInterface().Prompt(message, _default);
}; };