diff --git a/duplicate as pattern.sketchplugin b/duplicate as pattern.sketchplugin index 3d45cfb..3a7de93 100644 --- a/duplicate as pattern.sketchplugin +++ b/duplicate as pattern.sketchplugin @@ -1,6 +1,6 @@ // duplicate the selection and put the clone into the other edge. -var layer = selection[0]; +var layer = context.selection[0]; var frame = [layer frame]; var parent = [layer parentGroup];