瀏覽代碼

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,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…
取消
儲存