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