From 7b8ef3bb8a74b645bbd9bbb6b2d559f9c75a35c7 Mon Sep 17 00:00:00 2001 From: Jonathan Gros-Dubois Date: Sat, 8 Jul 2017 15:31:12 +0200 Subject: [PATCH] Fixed blank space --- lib/auth.js | 2 +- socketcluster.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/auth.js b/lib/auth.js index f657e34..d62249e 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -7,7 +7,7 @@ AuthEngine.prototype._isLocalStorageEnabled = function () { try { // Some browsers will throw an error here if localStorage is disabled. global.localStorage; - + // Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem // throw QuotaExceededError. We're going to detect this and avoid hard to debug edge cases. global.localStorage.setItem('__scLocalStorageTest', 1); diff --git a/socketcluster.js b/socketcluster.js index 54817eb..4b2a00d 100644 --- a/socketcluster.js +++ b/socketcluster.js @@ -429,7 +429,7 @@ AuthEngine.prototype._isLocalStorageEnabled = function () { try { // Some browsers will throw an error here if localStorage is disabled. global.localStorage; - + // Safari, in Private Browsing Mode, looks like it supports localStorage but all calls to setItem // throw QuotaExceededError. We're going to detect this and avoid hard to debug edge cases. global.localStorage.setItem('__scLocalStorageTest', 1); @@ -5361,4 +5361,4 @@ exports.decode = exports.parse = require('./decode'); exports.encode = exports.stringify = require('./encode'); },{"./decode":22,"./encode":23}]},{},[3])(3) -}); \ No newline at end of file +});