Closed LikeSundayLikeRain closed 6 years ago
Thanks for the heads up! I just pushed your fix and made a new release for this. Mind testing it out?
It's got fixed. But I think I got an another issue.
My custom Regexp defined at config file can't get loaded when I'm launching Hyper, but it works fine when I reload Hyper after it launches.
Looks like Hyper is rendering the plugins before the window loads. So when initiating hyper-tab-icons, const config = getConfig() seems load nothing because of window is not defined.
I'm using Hyper 1.4.8 on a Windows machine, not sure if Hyper loads plugin differently on other systems.
Gotcha. I'll take a look into this. I'll have to add back the decorateConfig
export and find a nice, functional, way to get the config.
Please re-open if this is still an issue with Hyper 2.
https://github.com/dfrankland/hyper-tab-icons/blob/ef444af2624ba6b22d5afcd8f8fbc8a69f6b1757/src/lib/getIcon.js#L40-L41
Seems it should be config.processNameRegex.source and config.processNameRegex.flags