mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
fixed linter problem
This commit is contained in:
parent
1bf7ff8994
commit
111515e794
@ -34,7 +34,8 @@ const EffectsOverlay: FunctionComponent<EffectsOverlayProps> = ({ roomWidth }) =
|
||||
if (effect === null) {
|
||||
const options = CHAT_EFFECTS.find((e) => e.command === name)?.options
|
||||
try {
|
||||
const { default: Effect }: { default: ICanvasEffectConstructable } = await import(`../../../effects/${name}`);
|
||||
const { default: Effect }: { default: ICanvasEffectConstructable }
|
||||
= await import(`../../../effects/${name}`);
|
||||
effect = new Effect(options);
|
||||
effectsRef.current[name] = effect;
|
||||
} catch (err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user