This commit is contained in:
Mirco Wittrien 2019-11-26 12:21:05 +01:00
parent 738ab50464
commit c631d0917d
2 changed files with 4 additions and 3 deletions

View File

@ -8976,6 +8976,7 @@ var BDFDB = {
});
BDFDB.ModuleUtils.patch(BDFDB, LibraryComponents.GuildComponents.BlobMask.prototype, "componentDidUpdate", {
after: e => {
console.log(e);
for (let type of newBadges) {
if (e.thisObject.props[type] != null && e.methodArguments[0][type] == null) {
e.thisObject.state[`${type}Mask`].update({
@ -9000,7 +9001,7 @@ var BDFDB = {
});
};
LibraryComponents.GuildComponents.BlobMask.prototype.getLowerLeftBadgeStyles = function () {
var e = this.state.lowerBadgeMask.animated.spring;
var e = this.state.lowerLeftBadgeMask.animated.spring;
return {
opacity: e.to([0, .5, 1], [0, 0, 1]),
transform: e.to(function (e) {
@ -9009,7 +9010,7 @@ var BDFDB = {
}
};
LibraryComponents.GuildComponents.BlobMask.prototype.getUpperLeftBadgeStyles = function () {
var e = this.state.upperBadgeMask.animated.spring;
var e = this.state.upperLeftBadgeMask.animated.spring;
return {
opacity: e.to([0, .5, 1], [0, 0, 1]),
transform: e.to(function (e) {

File diff suppressed because one or more lines are too long