Workaround for FF bug
This commit is contained in:
		
							parent
							
								
									5c62f99fee
								
							
						
					
					
						commit
						843830cea0
					
				| @ -62,13 +62,16 @@ var RenderingQueue = (function RenderingQueueClosure() { | |||||||
| })(); | })(); | ||||||
| 
 | 
 | ||||||
| // Settings Manager - This is a utility for saving settings
 | // Settings Manager - This is a utility for saving settings
 | ||||||
| // First we see if localStorage is available, FF bug #495747
 | // First we see if localStorage is available
 | ||||||
| // If not, we use FUEL in FF
 | // If not, we use FUEL in FF
 | ||||||
| var Settings = (function SettingsClosure() { | var Settings = (function SettingsClosure() { | ||||||
|   var isLocalStorageEnabled = (function localStorageEnabledTest() { |   var isLocalStorageEnabled = (function localStorageEnabledTest() { | ||||||
|     // Feature test as per http://diveintohtml5.info/storage.html
 |     // Feature test as per http://diveintohtml5.info/storage.html
 | ||||||
|  |     // The additional localStorage call is to get around a FF quirk, see
 | ||||||
|  |     // bug #495747 in bugzilla
 | ||||||
|     try { |     try { | ||||||
|       return 'localStorage' in window && window['localStorage'] !== null; |       return 'localStorage' in window && window['localStorage'] !== null && | ||||||
|  |           localStorage; | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|       return false; |       return false; | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user