default.init is not a function...
jesperlandberg opened this issue · comments
Jesper Landberg commented
Hi,
I'm using browserify and this is giving me c.default.init is not a function error.
import echo from 'echo-js'
echo.init({
offset: 100,
throttle: 250,
unload: false
})
Why is this?
Paweł Golonko commented
If someone will be looking for the answer:
import echo from 'echo-js';
echo(window).init({
throttle: 250,
offset: 1000,
unload: true,
});