Skip to content

Commit c286c05

Browse files
committed
Updating to latest phanpy
1 parent 2372379 commit c286c05

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

src/locales/en.po

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/login.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ function Login() {
7272
// WEB_DOMAIN vs LOCAL_DOMAIN negotiation time
7373
// https://docs.joinmastodon.org/admin/config/#web_domain
7474
try {
75-
const res = await fetch(`https://${instanceURL}/.well-known/host-meta`); // returns XML
75+
const res = await fetch(
76+
`${PHANPY_SCHEME}://${instanceURL}/.well-known/host-meta`,
77+
); // returns XML
7678
const text = await res.text();
7779
// Parse XML
7880
const parser = new DOMParser();

src/utils/auth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { generateCodeChallenge, verifier } from './oauth-pkce';
22

33
const {
4+
DEV,
45
PHANPY_CLIENT_NAME: CLIENT_NAME,
56
PHANPY_WEBSITE: WEBSITE,
67
PHANPY_SCHEME: SCHEME = 'https',

0 commit comments

Comments
 (0)