Skip to content
Browse files
Simplify and improve
The browser version assumes that uses an API which is compatible with localStorage; which is not the case. Even though I am using for my Chrome extension, I would much prefer to keep debug's variable in localStorage, as I consider the 'private space' of my extension.

This change obviates the need to support multiple storage types. But if storage type is important, how about supporting a custom storage facility, including I.e. the user would provide an object that follows the conventions. Just a thought - I certainly don't see the need at this point though.
  • Loading branch information
EirikBirkeland committed Jul 17, 2017
1 parent a45d4a0 commit da51af8314436ab532c151583f7fd52b2ebf2a3e
Showing 1 changed file with 1 addition and 4 deletions.
@@ -10,10 +10,7 @@ exports.formatArgs = formatArgs; = save;
exports.load = load;
exports.useColors = useColors; = 'undefined' != typeof chrome
&& 'undefined' != typeof
: localstorage(); = localstorage();

* Colors.

0 comments on commit da51af8

Please sign in to comment.