refactor: Consolidate tab initialization logic using shared utility function

This commit is contained in:
Jokob @NetAlertX
2026-02-27 10:07:55 +00:00
parent 9d64665599
commit 4c0d5c7376
5 changed files with 116 additions and 87 deletions

View File

@@ -330,7 +330,13 @@ function generateTabs() {
}
});
// Auto-select tab from ?tab= URL param or cache (scoped to plugin nav only)
initializeTabsShared({
cacheKey: 'activePluginsTab',
urlParamName: 'tab',
idSuffix: '_id',
tabContainer: '#tabs-location'
});
hideSpinner()
}