diff --git a/lib/loglevel.js b/lib/loglevel.js
index <HASH>..<HASH> 100644
--- a/lib/loglevel.js
+++ b/lib/loglevel.js
@@ -80,6 +80,9 @@
 
         function localStorageAvailable() {
             try {
+                window.localStorage.test = 'test';
+                window.localStorage.removeItem('test');
+
                 return (typeof window !== undefinedType &&
                         window.localStorage !== undefined);
             } catch (e) {
Added fix for Private mode in Safari