Skip to content

Commit feab9d8

Browse files
nirmal91blazzy
authored andcommitted
AMP-0: Fix src/amplitude-client.js typo; _upgradeCookeData to _upgradeCookieData. (#141)
1 parent d27119d commit feab9d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/amplitude-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ AmplitudeClient.prototype.init = function init(apiKey, opt_userId, opt_config, o
7575
this.options.domain = this.cookieStorage.options().domain;
7676

7777
if (this._instanceName === Constants.DEFAULT_INSTANCE) {
78-
_upgradeCookeData(this);
78+
_upgradeCookieData(this);
7979
}
8080
_loadCookieData(this);
8181

@@ -382,7 +382,7 @@ AmplitudeClient.prototype._setInStorage = function _setInStorage(storage, key, v
382382
* Need to unify all sources into one place with a one-time upgrade/migration.
383383
* @private
384384
*/
385-
var _upgradeCookeData = function _upgradeCookeData(scope) {
385+
var _upgradeCookieData = function _upgradeCookieData(scope) {
386386
// skip if already migrated to 4.10+
387387
var cookieData = scope.cookieStorage.get(scope.options.cookieName + scope._storageSuffix);
388388
if (type(cookieData) === 'object') {

0 commit comments

Comments
 (0)