caoxiemeihao / nuxt-electron

Integrate Nuxt and Electron
MIT License
184 stars 21 forks source link

How to properly use Cookies #50

Closed DerSimeon closed 11 months ago

DerSimeon commented 11 months ago

Hey,

I tried following electrons official guide on how to use cookies. using require doesn't work since that doesn't work in nuxt 3.

using 'import {session} from electron' causes '__dirname is not defined' errors in the electron devtools console. Any Idea how to fix it?

caoxiemeihao commented 11 months ago

You should use this in the Main process.