I installed js-cookie using `yard add js-cookie and put this line in
application.js
require("js-cookie")
but when I use this code in my channel:
console.log(Cookies.get('current_user_id'))
I get the error Cookies is not defined
--
You received this message because you are subscribed to the
On Saturday, January 11, 2020 at 1:48:31 AM UTC-5, fugee ohu wrote:
>
> I installed js-cookie using `yard add js-cookie and put this line in
> application.js
> require("js-cookie")
> but when I use this code in my channel:
> console.log(Cookies.get('current_user_id'))
> I get the error
On Saturday, January 11, 2020 at 1:48:31 AM UTC-5, fugee ohu wrote:
>
> I installed js-cookie using `yard add js-cookie and put this line in
> application.js
> require("js-cookie")
> but when I use this code in my channel:
> console.log(Cookies.get('current_user_id'))
> I get the error
3 matches
Mail list logo