Closed akozhemiakin closed 7 years ago
This issue is affecting Chrome users. Please merge. LGTM :+1:
This change was originally introduced in #41 by @SteffanDonal . I think a better fix would be:
var __consoleLog = window.console.log.bind(window.console);
var __log = function(msg) {
__consoleLog('LIVERELOAD: ' + msg);
};
Done.
Any update on this? Looks like @akozhemiakin applied the suggested change from @hiddentao.
Thanks
Awesome, thank you!
Livereload does not work in chrome because of the illegal call to the window.console.log function. Log function in chrome is context aware (sensitive to the current value of 'this'). This commit fixes this chrome related bug by calling window.console.log directly, and hence in the right context.