Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uplocalStorage is undefined && doesn't ignore node_modules #976
Comments
This comment has been minimized.
This comment has been minimized.
|
|
dcousens
added
the
question
label
Aug 23, 2017
This comment has been minimized.
This comment has been minimized.
|
Correct answer! Also https://npmjs.com/global if you want to get modular about it. |
dcousens
closed this
Aug 23, 2017
This comment has been minimized.
This comment has been minimized.
|
You could also add this comment to the top of the file, which would also work in web workers. /* global localStorage */see #619 for more details :) |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
CodeDraken commentedAug 23, 2017
This is giving me an error "'localStorage' is not defined. (no-undef)"
It's also checking files inside node_modules for some reason.