Check for app.dock before calling its method
Check for app.dock before calling its method

Should theoretically allow this to run on non-Mac. Should fix #1 although I haven't tested.
romannurik/MaterialColorsApp