misskey login

This commit is contained in:
cutls 2020-04-08 15:27:47 +09:00
parent 50e11ec035
commit fedb1ee858
2 changed files with 4 additions and 1 deletions

View File

@ -47,6 +47,9 @@ function ck() {
multiSelector(false) multiSelector(false)
verck(ver, jp) verck(ver, jp)
$('.stw').show() $('.stw').show()
if (localStorage.getItem('tips')) {
tips(localStorage.getItem('tips'))
}
$('#something-wrong img').attr('src', '../../img/thinking.svg') $('#something-wrong img').attr('src', '../../img/thinking.svg')
} }
} }

View File

@ -506,7 +506,7 @@ function misskeyLogin(url) {
if (!url) { if (!url) {
var url = $('#misskey-url').val() var url = $('#misskey-url').val()
} }
var start = 'http://' + url + '/api/app/create' var start = 'https://' + url + '/api/app/create'
var httpreq = new XMLHttpRequest() var httpreq = new XMLHttpRequest()
httpreq.open('POST', start, true) httpreq.open('POST', start, true)
httpreq.setRequestHeader('Content-Type', 'application/json') httpreq.setRequestHeader('Content-Type', 'application/json')