[bugzilla-gnome-org-extensions] Make localStorage check more careful
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] Make localStorage check more careful
- Date: Thu, 20 Nov 2014 22:20:10 +0000 (UTC)
commit 17ed7d4039b23f0f9ec20e2950237560d6efb88d
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Sep 17 00:11:33 2009 -0400
Make localStorage check more careful
'localStorage in window' was returning true in current Chromium builds
with the experimental localeStorage support off.
Add '&& window.localStorage != null'.
(localStorage can be enabled for these builds with --enable-local-storage)
js/reviewStorage.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/reviewStorage.js b/js/reviewStorage.js
index cfc146c..63939bc 100644
--- a/js/reviewStorage.js
+++ b/js/reviewStorage.js
@@ -22,7 +22,7 @@ function LocalReviewStorage() {
}
LocalReviewStorage.available = function() {
- return 'localStorage' in window;
+ return 'localStorage' in window && window.localStorage != null;
};
LocalReviewStorage.prototype = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]