Procházet zdrojové kódy

Cleanup Github reply.data.content before atob()

Scott Lahteine před 9 roky
rodič
revize
da275c72ab
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      Marlin/configurator/js/configurator.js

+ 1
- 1
Marlin/configurator/js/configurator.js Zobrazit soubor

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

Loading…
Zrušit
Uložit