sdk fixes

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-26 22:15:10 +01:00
parent 117a8797a1
commit 09037969d8
12 changed files with 33 additions and 55 deletions

View File

@@ -121,10 +121,6 @@ export class Mixan<Options extends MixanOptions = MixanOptions> {
// Public
public init(properties?: Record<string, unknown>) {
this.state.properties = properties ?? {};
}
public setProfileId(profileId: string) {
this.state.profileId = profileId;
}
@@ -206,6 +202,7 @@ export class Mixan<Options extends MixanOptions = MixanOptions> {
public clear() {
this.state.properties = {};
this.state.deviceId = undefined;
this.state.profileId = undefined;
if (this.options.removeDeviceId) {
this.options.removeDeviceId();
}