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:
commit
5702380c16
@ -266,7 +266,7 @@ _V_.extend({
|
|||||||
================================================================================ */
|
================================================================================ */
|
||||||
setLocalStorage: function(key, value){
|
setLocalStorage: function(key, value){
|
||||||
// IE was throwing errors referencing the var anywhere without this
|
// IE was throwing errors referencing the var anywhere without this
|
||||||
var localStorage = localStorage || false;
|
var localStorage = window.localStorage || false;
|
||||||
if (!localStorage) { return; }
|
if (!localStorage) { return; }
|
||||||
try {
|
try {
|
||||||
localStorage[key] = value;
|
localStorage[key] = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user