mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
Simplify API call url
This commit is contained in:
@@ -36,7 +36,7 @@ const printCurrentBrew = ()=>{
|
||||
|
||||
const fetchThemeBundle = async (obj, renderer, theme) => {
|
||||
const res = await request
|
||||
.get(`${window.location.protocol}//${window.location.host}/api/theme/${renderer}/${theme}`)
|
||||
.get(`/api/theme/${renderer}/${theme}`)
|
||||
.catch((err) => {
|
||||
obj.setState({ error: err });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user