Skip to content

Commit

Permalink
feat: make oninit public (#307)
Browse files Browse the repository at this point in the history
* feat: make oninit public

* Update docs
  • Loading branch information
jooohhn authored Oct 13, 2020
1 parent 3a9f25b commit 51d5d43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ AmplitudeClient.prototype.isNewSession = function isNewSession() {
};

/**
* Store callbacks to call after init
* @private
* Add callbacks to call after init. Useful for users who load Amplitude through a snippet.
* @public
*/
AmplitudeClient.prototype.onInit = function (callback) {
if (this._isInitialized) {
Expand Down

0 comments on commit 51d5d43

Please sign in to comment.