Pārlūkot izejas kodu

Cleanup Github reply.data.content before atob()

Scott Lahteine 9 gadus atpakaļ
vecāks
revīzija
da275c72ab
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/configurator/js/configurator.js

+ 1
- 1
Marlin/configurator/js/configurator.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt