Skip to content

Commit

Permalink
fix: 安装脚本时代码对比反向问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Nov 7, 2021
1 parent 53bac0b commit bd769a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/apps/grant/background.ts
Expand Up @@ -138,7 +138,6 @@ export class BackgroundGrant {
});
}
});
console.log(details.responseHeaders);
return {
responseHeaders: details.responseHeaders
}
Expand Down Expand Up @@ -372,7 +371,6 @@ export class BackgroundGrant {

protected dealXhr(config: GM_Types.XHRDetails, xhr: XMLHttpRequest): GM_Types.XHRResponse {
let removeXCat = new RegExp("x-cat-" + this.rand + "-", "g");
console.log(xhr.getAllResponseHeaders().replace(removeXCat, ""), removeXCat);
let respond: GM_Types.XHRResponse = {
finalUrl: config.url,
readyState: <any>xhr.readyState,
Expand Down
4 changes: 2 additions & 2 deletions src/views/pages/Install/index.vue
Expand Up @@ -214,8 +214,8 @@ export default class Index extends Vue {
diffWordWrap: "off",
});
this.diff.setModel({
original: editor.createModel(oldsub.code, "javascript"),
modified: editor.createModel(this.script.code, "javascript"),
original: editor.createModel(this.script.code, "javascript"),
modified: editor.createModel(oldsub.code, "javascript"),
});
this.isupdate = true;
this.oldVersion =
Expand Down

0 comments on commit bd769a0

Please sign in to comment.