Skip to content

Commit 8ce932c

Browse files
authored
editor-animations -- add todo and strictly check for library when animating
1 parent c7671fa commit 8ce932c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/addons/addons/editor-animations/userscript.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// Editor Animations (remake of Reactive Animation by <https://github.com/mmmmaaaaarrrrrrkkkkkkkk>)
22
// By: SharkPool
33
// By: reflow <https://github.com/mmmmaaaaarrrrrrkkkkkkkk>
4+
5+
/* TODO
6+
- patch custom modal api when added
7+
- patch adding modals from addons (they dont use react)
8+
*/
9+
410
export default async function({ addon }) {
511
const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
612
const addonKey = "addonAnimations-";
@@ -430,7 +436,7 @@ export default async function({ addon }) {
430436
const name = entry[0];
431437
handleOpenAnimation(name);
432438
attachCloseHijack(name);
433-
compileClasses(name.endsWith("Menu") ? undefined : name);
439+
compileClasses(name.endsWith("Library") ? name : undefined);
434440
break;
435441
}
436442
}

0 commit comments

Comments
 (0)