vendor/assets/javascripts/webshims/shims/json-storage.js in webshims-rails-0.4.6 vs vendor/assets/javascripts/webshims/shims/json-storage.js in webshims-rails-0.4.7
- old
+ new
@@ -282,10 +282,10 @@
$.webshims.ready('DOM swfobject', function(){
if(runStart || (('localStorage' in window) && document.getElementById('swflocalstorageshim')) ){return;}
runStart = true;
if(window.swfobject && swfobject.hasFlashPlayerVersion('8.0.0')){
- $('body')[$.browser.mozilla ? 'after' : 'append']('<div id="swflocalstorageshim-wrapper"><div id="swflocalstorageshim" /></div>');
+ $('body').append('<div id="swflocalstorageshim-wrapper"><div id="swflocalstorageshim" /></div>');
swfobject.embedSWF($.webshims.cfg.basePath +'swf/localStorage.swf' +($.webshims.cfg.addCacheBuster || ''), 'swflocalstorageshim', '295', '198', '8.0.0', '', {allowscriptaccess: 'always'}, {name: 'swflocalstorageshim'}, function(e){
if(!e.success && !window.localStorage){
localStorageSwfCallback();
}
});