You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -186,13 +186,13 @@ Type: `integer`
186
186
187
187
Event value: A numeric value associated with the event (e.g. 42).
188
188
189
-
#### .askPermission([message, callback])
189
+
#### .askPermission([message])
190
190
191
191
Asks the user permission to opt-in to tracking and sets the `optOut` property in `config`. You can also choose to set `optOut` property in `config` manually.
Optionally supply your own `message` and `callback`. If `message` is `null`, default message will be used. The callback will be called with the arguments `error` and`optIn` when the prompt is done and is useful for when you want to continue the execution while the prompt is running.
195
+
Optionally supply your own `message`. If `message` is `null`, default message will be used. This also resolves with the new value of`optIn` when the prompt is done and is useful for when you want to continue the execution while the prompt is running.
0 commit comments