shakyShane / html-injector

BrowserSync html injector
78 stars 21 forks source link

Patch to make it work when UI is disabled in config #5

Closed xkxx closed 9 years ago

xkxx commented 9 years ago

Hello,

The current version throws this error when ui is disabled in config:

lib/node_modules/bs-html-injector/index.js:56
    var ui           = bs.io.of(bs.ui.config.getIn(["socket", "namespace"]));
                                     ^
TypeError: Cannot read property 'config' of undefined

This patch fixes it so that it disables the UI-related functionalities if UI is disabled.

Thanks,

xkxx

shakyShane commented 9 years ago

bs-html-injector@2.0.3 :)