Browse Source

Base64 decode AJAX-fetched text properly

pull/1/head
Scott Lahteine 10 years ago
parent
commit
978dadf806
  1. 2
      Marlin/configurator/js/configurator.js

2
Marlin/configurator/js/configurator.js

@ -240,7 +240,7 @@ window.configuratorApp = (function(){
timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000), timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000),
}; };
} }
loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? atob(txt.data.content.replace(/\s/g, '')) : txt, true); }; loaded_items[fname] = function(){ self.fileLoaded(fname, isGithub ? decodeURIComponent(escape(atob(txt.data.content))) : txt, true); };
success_count++; success_count++;
} }
}, },

Loading…
Cancel
Save