Skip to content

Commit

Permalink
Fix blockAlert documentation (#3484)
Browse files Browse the repository at this point in the history
  • Loading branch information
obecker authored May 8, 2023
1 parent 1973483 commit 8ea7d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/dialog/libdialog.m
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ static int webviewAlert(lua_State *L) {
///
/// Notes:
/// * The optional values must be entered in order (i.e. you can't supply `style` without also supplying `buttonOne` and `buttonTwo`).
/// * [style] can be "warning", "informational" or "critical". If something other than these string values is given, it will use "informational".
/// * [style] can be "warning", "informational" or "critical". If something other than these string values is given, it will use "warning".
/// * Example:
/// `hs.dialog.blockAlert("Message", "Informative Text", "Button One", "Button Two", "NSCriticalAlertStyle")`
/// `hs.dialog.blockAlert("Message", "Informative Text", "Button One", "Button Two", "critical")`
static int blockAlert(lua_State *L) {

NSString* defaultButton = @"OK";
Expand Down

0 comments on commit 8ea7d10

Please sign in to comment.