Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script tag not working #24

Open
demyan1411 opened this issue Sep 6, 2017 · 2 comments
Open

script tag not working #24

demyan1411 opened this issue Sep 6, 2017 · 2 comments

Comments

@demyan1411
Copy link

if I added vue-cookie with tag <script> it is not working

@Ickerday
Copy link

Ickerday commented Feb 7, 2018

Can confirm. Is there anything we should do in the browser after loading through <script>?
I'm no JS magician, but I found there is no way to interact with the plugin at all. There are no vue-cookie methods in the Vue instance.

@duncanmcclean
Copy link

I just tried to set a cookie using the script tag and it doesn't work. It gives the following error

Uncaught TypeError: Cannot read property 'set' of undefined

The code I am using to set the cookie is this.$cookie.set('privacyCookie', 'true', 30)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants