Base64 decode AJAX-fetched text properly

This commit is contained in:
Scott Lahteine 2015-03-08 21:54:17 -07:00
parent 0f3b7d5575
commit 978dadf806

View file

@ -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++;
} }
}, },