andrewfiorillo / sketch-palettes

A Sketch plugin for exporting and importing fill presets. It supports colors, gradients, and pattern fills.
MIT License
2.27k stars 135 forks source link

Fix "Load Palette…" option #54

Closed kyleweiner closed 7 years ago

kyleweiner commented 7 years ago

Works around ccgus/CocoaScript#48, which was preventing the Open panel from appearing on macOS High Sierra 10.13 when selecting the "Load Palette…" option. Prior to this commit, the following error is logged to the Console app when attempting to load a palette:

ObjC method arrayWithObjects: requires 1 argument, but JavaScript passed 2 arguments

Tangentially, since the same array values are used here, perhaps a const ALLOWED_FILE_TYPES = ["sketchpalette"] would be more ideal.

Anyway, thanks for this plugin. I use it whenever I design in Sketch.