Update app.js

This commit is contained in:
Jaime Idolpx 2022-06-14 23:28:57 -05:00 committed by GitHub
parent f31dbc445a
commit 3bdc622118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
const GRAPHQL_URL = 'http://localhost:3000/';
const GRAPHQL_URL = 'https://csdb.idolpx.com/';
async function getRelease(id) {
const response = await fetch(GRAPHQL_URL, {
@ -126,4 +126,4 @@ getRelease(1).then((release) => {
title.textContent = release.Name;
const screenshot = document.querySelector('img');
screenshot.src = release.ScreenShot;
});
});