Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interface/src/scripting/WindowScriptingInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ public slots:
* @function Window.prompt
* @param {string} message - The question to display.
* @param {string} defaultText - The default answer text.
* @returns {string} The text that the user entered if they select "OK", otherwise "".
* @returns {string} The text that the user entered if they select "OK", otherwise null.
* @example <caption>Ask the user a question requiring a text answer.</caption>
* var answer = Window.prompt("Question", "answer");
* if (answer === "") {
* if (answer === null) {
* print("User canceled");
* } else {
* print("User answer: " + answer);
Expand Down