Skip to content

Commit

Permalink
chore: Use prefix.cc proxy to work with HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
smessie committed Oct 10, 2023
1 parent dc06ca9 commit dcc381c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ScholarlyBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
},
async getPrefixedProperty(property: string) {
// Do a fetch to prefix.cc, this will trigger in a redirect to the prefix.cc page with the prefix that we are looking for.
const response = await fetch(`http://prefix.cc/?q=${encodeURIComponent(property)}`);
const response = await fetch(`https://prefixcc-proxy.smessie.com/?q=${encodeURIComponent(property)}`);
// Now get the prefix from the URL of the response.
return response.url.split('prefix.cc/')[1];
},
Expand Down

0 comments on commit dcc381c

Please sign in to comment.