diff --git a/main.py b/main.py index 91c7900..1b0ada8 100644 --- a/main.py +++ b/main.py @@ -7,3 +7,4 @@ import requests, sqlite3, json from mastodon import Mastodon +cfg = json.load(open('meta.json')) diff --git a/static/script.js b/static/script.js index 7bf06f2..aabdd2f 100644 --- a/static/script.js +++ b/static/script.js @@ -35,8 +35,6 @@ async function ajax(url) { //must be called from an async function! use 'await', async function cont() { url = dgel('instance-input').value; - if (url.substr(0,8) != "https://") { - url = "https://" + url - } - + j = await ajax('/internal/auth_a?url=' + url) + console.log(j) } \ No newline at end of file diff --git a/templates/landing_page.html b/templates/landing_page.html index 0977208..b5e4ae2 100644 --- a/templates/landing_page.html +++ b/templates/landing_page.html @@ -9,6 +9,9 @@