File tree Expand file tree Collapse file tree 2 files changed +579
-598
lines changed Expand file tree Collapse file tree 2 files changed +579
-598
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ export abstract class APIModel {
1919 abstract getById ( id : string ) : Promise < MediaTypeModel > ;
2020
2121 hasType ( type : MediaType ) : boolean {
22- // if (
23- // this.types.contains(type) &&
24- // (Boolean((this.plugin.settings.apiToggle as any)?.[this.apiName]?.[type]) === true || (this.plugin.settings.apiToggle as any)?.[this.apiName]?.[type] === undefined)
25- // ) {
26- // return true;
27- // }
28- return this . types . contains ( type ) ;
22+ if (
23+ this . types . contains ( type ) &&
24+ ( Boolean ( ( this . plugin . settings . apiToggle as any ) ?. [ this . apiName ] ?. [ type ] ) === true || ( this . plugin . settings . apiToggle as any ) ?. [ this . apiName ] ?. [ type ] === undefined )
25+ ) {
26+ return true ;
27+ }
28+ return false ;
2929 }
3030
3131 hasTypeOverlap ( types : MediaType [ ] ) : boolean {
You can’t perform that action at this time.
0 commit comments