rpwoodbu / mosh-chrome

Mosh for Chrome
GNU General Public License v3.0
371 stars 59 forks source link

fix minor crash with term-init-string prefs #209

Closed vapier closed 1 month ago

vapier commented 3 years ago

The storage call here will return an empty object when the key isn't found which causes this code to pass undefined down to the terminal print layers (which then crashes). It doesn't affect the running of the app because this is a callback func in its own execution scope, but it does clutter up the console log.

vapier commented 3 years ago

ah looks like someone already discovered & proposed a fix at #161. you can decide which form you like better ;).

vapier commented 1 month ago

that one was merged, so no need for this anymore