diff --git a/CG.sketchplugin/Contents/Sketch/Images/Custom.js b/CG.sketchplugin/Contents/Sketch/Images/Custom.js index 6d5155c..8b9f440 100644 --- a/CG.sketchplugin/Contents/Sketch/Images/Custom.js +++ b/CG.sketchplugin/Contents/Sketch/Images/Custom.js @@ -6,7 +6,7 @@ function onRun(context){ - var fileTypes = [NSArray arrayWithObjects:@"png", @"jpg", @"gif", @"jpeg", nil]; + var fileTypes = [NSArray arrayWithArray:[@"png", @"jpg", @"gif", @"jpeg"]]; var panel = [NSOpenPanel openPanel]; var imageFileNames = []; [panel setCanChooseFiles:true];