fixed linter problem

This commit is contained in:
nurjinn jafar 2020-12-01 17:37:28 +01:00
parent 1bf7ff8994
commit 111515e794

View file

@ -34,7 +34,8 @@ const EffectsOverlay: FunctionComponent<EffectsOverlayProps> = ({ roomWidth }) =
if (effect === null) { if (effect === null) {
const options = CHAT_EFFECTS.find((e) => e.command === name)?.options const options = CHAT_EFFECTS.find((e) => e.command === name)?.options
try { try {
const { default: Effect }: { default: ICanvasEffectConstructable } = await import(`../../../effects/${name}`); const { default: Effect }: { default: ICanvasEffectConstructable }
= await import(`../../../effects/${name}`);
effect = new Effect(options); effect = new Effect(options);
effectsRef.current[name] = effect; effectsRef.current[name] = effect;
} catch (err) { } catch (err) {