Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 11 files). Show all
Unified · Split
| @@ -535,9 +535,10 @@ public slots: · 534 unmodified lines | ||
| 535 | 535 | int openMessageBox(QString title, QString text, int buttons, int defaultButton); |
| 536 | 536 | |
| 537 | 537 | /**jsdoc |
| 538 | − * Open a URL in the Interface window or other application, depending on the URL's scheme. If the URL starts with | |
| 539 | − * <code>hifi://</code> then that URL is navigated to in Interface, otherwise the URL is opened in the application the OS | |
| 540 | − * associates with the URL's scheme (e.g., a Web browser for <code>http://</code>). | |
| 538 | + * Open a URL in the Interface window or other application, depending on the URL's scheme. The following schemes are supported: | |
| 539 | + * <code>hifi</code> (navigate to the URL in Interface), <code>hifiapp<code> (open a system app in Interface). Other schemes will either be handled by the OS | |
| 540 | + * (e.g. <code>http</code>, <code>https</code>, <code>mailto</code>) or will create a confirmation dialog asking the user to confirm that they want to try to open | |
| 541 | + * the URL. | |
| 541 | 542 | * @function Window.openUrl |
| 542 | 543 | * @param {string} url - The URL to open. |
| 543 | 544 | */ |