Skip to content

Commit

Permalink
fix: add backwards compatibility for canvas.fxmaster._createInvertMask
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost91- committed Dec 19, 2021
1 parent 05fa8a1 commit d9bba42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/module/weatherEffects/WeatherLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,12 @@ export class WeatherLayer extends CanvasLayer {
this.weatherEffects[id].fx.play();
}
}

/** @deprecated since v2.0.0 */
_createInvertMask() {
logger.warn(
"'canvas.fxmaster._createInvertMask' is deprecated and will be removed in a future version. Please use 'canvas.fxmaster._createInvertedMask' instead.",
);
return this._createInvertedMask();
}
}

0 comments on commit d9bba42

Please sign in to comment.