From 9584b0db26122968604db0fb65c9613f4aee5bf7 Mon Sep 17 00:00:00 2001 From: Rohan Bhangui Date: Fri, 8 Dec 2017 00:32:15 -0500 Subject: [PATCH] fixed duplicate as pattern plugin to use correct context --- duplicate as pattern.sketchplugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];