WebKit2.ScriptDialog.prototype.confirm_set_confirmed
function confirm_set_confirmed(confirmed: Boolean): void { // Gjs wrapper for webkit_script_dialog_confirm_set_confirmed() }
This method is used for WebKit2.ScriptDialogType.confirm dialogs when WebKit2.WebView::script-dialog signal is emitted to set whether the user confirmed the dialog or not. The default implementation of WebKit2.WebView::script-dialog signal sets true when the OK button is clicked and false otherwise. It's an error to use this method with a WebKit2.ScriptDialog that is not of type WebKit2.ScriptDialogType.confirm.
- confirmed
whether user confirmed the dialog