1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +02:00

Merge pull request #142 from GianlucaGuarini/patch-3

fix  localStorage context
This commit is contained in:
Steve Heffernan 2012-02-14 16:33:05 -08:00
commit 5702380c16

View File

@ -266,7 +266,7 @@ _V_.extend({
================================================================================ */
setLocalStorage: function(key, value){
// IE was throwing errors referencing the var anywhere without this
var localStorage = localStorage || false;
var localStorage = window.localStorage || false;
if (!localStorage) { return; }
try {
localStorage[key] = value;