Basedash / dockhunt

Discover the apps everyone is docking about. Made by the team at @Basedash.
https://www.dockhunt.com
281 stars 5 forks source link

Error when using spacers #5

Open l-mbert opened 1 year ago

l-mbert commented 1 year ago

If you have spacers in your dock, which can be added with a command, the App will throw this error:

node:internal/process/task_queues:96
    runMicrotasks();
    ^

TypeError: Cannot read properties of undefined (reading '0')
    at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
    at getDockContents (/snapshot/dist/index.cjs)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Command for adding spacers:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'