Skip to content

Commit

Permalink
feat(plugin)!: do not initialize cookies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: no cookie is being saved until a user allows cookies to be saved. You now need to check for existence of cookie control's own cookies.
  • Loading branch information
dargmuesli committed Jan 14, 2023
1 parent cf27598 commit 2d85581
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ref } from 'vue'
import { setConsent } from './methods'
import { Cookie, State } from './types'

import { defineNuxtPlugin } from '#imports'
Expand All @@ -19,14 +18,6 @@ export default defineNuxtPlugin((_nuxtApp) => {
moduleOptions,
} as State

setConsent({
isInit: !process.client,
isConsentGiven,
moduleOptions,
cookiesEnabled,
cookiesEnabledIds,
})

return {
provide: {
cookies: state,
Expand Down

0 comments on commit 2d85581

Please sign in to comment.