@ts-core/angular 15.0.29 → 15.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3300,7 +3300,6 @@ class LoginTokenStorage extends DestroyableContainer {
|
|
|
3300
3300
|
super();
|
|
3301
3301
|
this.storage = storage;
|
|
3302
3302
|
this.cookies = cookies;
|
|
3303
|
-
console.log(storage.get);
|
|
3304
3303
|
}
|
|
3305
3304
|
//--------------------------------------------------------------------------
|
|
3306
3305
|
//
|
|
@@ -3331,6 +3330,14 @@ class LoginTokenStorage extends DestroyableContainer {
|
|
|
3331
3330
|
this.cookies.remove(LoginTokenStorage.TOKEN_KEY);
|
|
3332
3331
|
}
|
|
3333
3332
|
}
|
|
3333
|
+
destroy() {
|
|
3334
|
+
if (this.isDestroyed) {
|
|
3335
|
+
return;
|
|
3336
|
+
}
|
|
3337
|
+
super.destroy();
|
|
3338
|
+
this.storage = null;
|
|
3339
|
+
this.cookies = null;
|
|
3340
|
+
}
|
|
3334
3341
|
}
|
|
3335
3342
|
//--------------------------------------------------------------------------
|
|
3336
3343
|
//
|