소스 검색

Cleanup Github reply.data.content before atob()

Scott Lahteine 9 년 전
부모
커밋
da275c72ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/configurator/js/configurator.js

+ 1
- 1
Marlin/configurator/js/configurator.js 파일 보기

226
                   timeLeft: Math.floor(txt.meta['X-RateLimit-Reset'] - Date.now()/1000),
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
               success_count++;
230
               success_count++;
231
             }
231
             }
232
           },
232
           },

Loading…
취소
저장