mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Only shows sponsor category if test server is disabled
This commit is contained in:
@@ -190,7 +190,9 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
||||
getCategoryOptions() {
|
||||
let elements = [];
|
||||
|
||||
for (const category of CompileConfig.categoryList) {
|
||||
//TODO: Remove this when testing server is not needed
|
||||
let categoryList = Config.config.testingServer ? CompileConfig.categoryList : ["sponsor"];
|
||||
for (const category of categoryList) {
|
||||
elements.push(
|
||||
<option value={category}
|
||||
key={category}>
|
||||
|
||||
Reference in New Issue
Block a user