async function retrieveClientIds() {
		let retrieveClientIds = await fetch("client-ids.json"); // Get contents of json file

		// If the json file was retrieved successfully
		if (retrieveClientIds.ok) {
			let retrieveClientIdsJSON = await retrieveClientIds.json(); // Convert to json object
			twitchClientID = retrieveClientIdsJSON["twitch-client-id"]; // Extract the Twitch id
		} else {
			console.error("Unable to get client ids. The application will not operate as intended. Please reload the page to try again.");
		}
	}
// Function for retrieving web app client ids
Function for retrieving web app client ids
Function for retrieving web app client ids
async function retrieveClientIds() {
		let retrieveClientIds = await fetch("client-ids.json"); 
		if (retrieveClientIds.ok) {
			let retrieveClientIdsJSON = await retrieveClientIds.json(); 
			twitchClientID = retrieveClientIdsJSON["twitch-client-id"]; 
		} else {
			console.error("Unable to get client ids. The application will not operate as intended. Please reload the page to try again.");
		}
	}
async function retrieveClientIds ( ) { let retrieveClientIds = await fetch ( "client-ids.json" ) ; if ( retrieveClientIds . ok ) { let retrieveClientIdsJSON = await retrieveClientIds . json ( ) ; twitchClientID = retrieveClientIdsJSON [ "twitch-client-id" ] ; } else { console . error ( "Unable to get client ids. The application will not operate as intended. Please reload the page to try again." ) ; } }
Function for retrieving web app client ids
Function for retrieving web app client ids
// Get contents of json file // If the json file was retrieved successfully // Convert to json object // Extract the Twitch id