guh
This commit is contained in:
parent
eff64cb2a6
commit
be00b81f70
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name incest mirror :)
|
||||
// @description kiss your sister
|
||||
// @version 1.0.0
|
||||
// @version 1.0.1
|
||||
|
||||
// @include https://www.github.com/*
|
||||
// @include http://www.github.com/*
|
||||
|
@ -218,7 +218,7 @@ function createSettingElement(key, [label, value, editable]) {
|
|||
|
||||
var res = await api("repos/migrate", _data);
|
||||
try {
|
||||
var resp = JSON.parse(res);
|
||||
var resp = JSON.parse(res.responseText);
|
||||
|
||||
if (resp.message) {
|
||||
if (resp.message == "The repository with the same name already exists.") {
|
||||
|
@ -228,7 +228,8 @@ function createSettingElement(key, [label, value, editable]) {
|
|||
window.open(resp.html_url);
|
||||
}
|
||||
} catch (err) {
|
||||
alert(res);
|
||||
console.log(res);
|
||||
alert(err);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue