Skip to content

Commit

Permalink
Fix transitiongroup module search
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos committed Jun 18, 2024
1 parent 78edeb7 commit 07a97e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
This changelog starts with the restructured 1.0.0 release that happened after context isolation changes. The changelogs here should more-or-less mirror the ones that get shown in the client but probably with less formatting and pizzazz.


## 1.10.2

### Added

### Removed

### Changed

### Fixed
- Fixed transition group search for Discord's new export schema

## 1.10.1

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "betterdiscord",
"version": "1.10.1",
"version": "1.10.2",
"description": "Enhances Discord by adding functionality and themes.",
"main": "src/index.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions renderer/src/data/changelog.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// fixed, improved, added, progress
export default {
video: "https://www.youtube.com/embed/evyvq9eQTqA?si=opmzjGjUArT4VLrj&vq=hd720p&hd=1&rel=0&showinfo=0&mute=1&loop=1&autohide=1",
description: "This is just a quick fix for those using Discord Canary & PTB, and of course a pre-emptive fix for when they move these changes to Stable.",
description: "A hotfix to get things going again. Plugins and Themes will take time to update.",
changes: [
{
title: "Bugs Squashed",
type: "fixed",
items: [
"Fixed modal transition component being grabbed incorrectly.",
"Fixed custom modal stack not having an `ErrorBoundary` which caused any small issue to bubble up and prevent BetterDiscord startup."
"Fixed transition group module search that prevented startup."
]
},
]
Expand Down
4 changes: 2 additions & 2 deletions renderer/src/ui/modals/stack.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Backdrop from "./backdrop";
const {Fragment, useState, useCallback, useEffect} = React;


const Transitions = WebpackModules.getModule(m => m?.defaultProps?.transitionAppear || m?.TransitionGroup?.defaultProps);
const TransitionGroup = Transitions.TransitionGroup ?? Transitions;
const [Transitions, TransitionKey] = WebpackModules.getWithKey(m => m?.defaultProps?.transitionAppear);
const TransitionGroup = Transitions && TransitionKey ? Transitions[TransitionKey] : function() {};

class ModalLayer extends React.Component {
constructor(props) {
Expand Down

0 comments on commit 07a97e2

Please sign in to comment.