Skip to content

Commit

Permalink
fix: add backwards compatibility for FXMASTER.filters.apply_to
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost91- committed Dec 19, 2021
1 parent 1abc056 commit 82007b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/module/filterEffects/FilterManager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { resetFlags } from "../utils.js";
import { logger } from "../logger.js";

class FilterManager {
constructor() {
Expand Down Expand Up @@ -158,6 +159,16 @@ class FilterManager {
this.filters[key].step();
}
}

/**
* @deprecated since v2.0.0
*/
get apply_to() {
logger.warn(
"'FXMASTER.filters.apply_to' is deprecated and will be removed in a future version. Please use 'FXMASTER.filters.filteredLayers' instead.",
);
return this.filteredLayers;
}
}

export const filterManager = new FilterManager();

0 comments on commit 82007b9

Please sign in to comment.