Parcourir la source

Cleanup Github reply.data.content before atob()

Scott Lahteine il y a 9 ans
Parent
révision
da275c72ab
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Marlin/configurator/js/configurator.js

+ 1
- 1
Marlin/configurator/js/configurator.js Voir le fichier

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

Chargement…
Annuler
Enregistrer