浏览代码

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

正在加载...
取消
保存