Browse Source

Cleanup Github reply.data.content before atob()

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

2
Marlin/configurator/js/configurator.js

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

Loading…
Cancel
Save