Fix sonarcloud bug
This commit is contained in:
@@ -156,9 +156,13 @@ class GroupSelectionMenu {
|
||||
} else if (id == 'leave-group') {
|
||||
apiClient.leaveSyncPlayGroup();
|
||||
} else if (id == 'settings') {
|
||||
new SyncPlaySettingsEditor(apiClient, SyncPlay.Manager.getTimeSyncCore(), {
|
||||
groupInfo: groupInfo
|
||||
});
|
||||
new SyncPlaySettingsEditor(apiClient, SyncPlay.Manager.getTimeSyncCore(), { groupInfo: groupInfo })
|
||||
.embed()
|
||||
.catch(error => {
|
||||
if (error) {
|
||||
console.error('Error creating SyncPlay settings editor', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
}).catch((error) => {
|
||||
if (error) {
|
||||
|
||||
@@ -37,8 +37,6 @@ class SettingsEditor {
|
||||
|
||||
this.tabNames = [];
|
||||
this.tabs = {};
|
||||
|
||||
this.embed();
|
||||
}
|
||||
|
||||
insertBefore(newNode, existingNode) {
|
||||
|
||||
Reference in New Issue
Block a user