Skip to content

Commit 51d5d43

Browse files
authored
feat: make oninit public (#307)
* feat: make oninit public * Update docs
1 parent 3a9f25b commit 51d5d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/amplitude-client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ AmplitudeClient.prototype.isNewSession = function isNewSession() {
491491
};
492492

493493
/**
494-
* Store callbacks to call after init
495-
* @private
494+
* Add callbacks to call after init. Useful for users who load Amplitude through a snippet.
495+
* @public
496496
*/
497497
AmplitudeClient.prototype.onInit = function (callback) {
498498
if (this._isInitialized) {

0 commit comments

Comments
 (0)