diff --git a/src/ui.tsx b/src/ui.tsx index f19def1..b7f3b8c 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -259,12 +259,12 @@ function Plugin () { setTimeout(function () { setCopied(false) }, 1500) } useEffect(function () { - logEvent('Plugin loaded · figma.version=' + (figma as any).version) loadSettings() .then(function (s) { setSettings(s) }) .catch(function () {}) .finally(function () { setLoaded(true) }) }, []) + useEffect(function () { try { logEvent('Plugin loaded') } catch (e) {} }, []) const resizeRef = useRef({ active: false, dir: '', startX: 0, startY: 0, startW: 0, startH: 0, fixedAxis: 'none' as 'none' | 'x' | 'y' }) // Current dock position (for "window is edge-docked" detection in UI). Center and // corners are NOT written here — they are not considered docked (window just lies there).