function updateControls() {
		// If active view is swap
		if (activeView == "swap") {
			// For each swapViewButton that is hidden on large displays
			swapViewButtonWrapperElements.forEach((e) => {
				// Show that control
				e.classList.remove("lg:hidden");
				e.classList.remove("hidden");
			});

			// Update rounding style on reload buttons since swap button is present
			document.getElementById("reloadStreamButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadGameButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadStreamButton").classList.remove("rounded-l");
			document.getElementById("reloadGameButton").classList.remove("rounded-l");
		}
		// Not swap view
		else {
			// For each swapViewButton that is hidden on large displays
			swapViewButtonWrapperElements.forEach((e) => {
				// Hide that control
				e.classList.remove("lg:hidden");
				e.classList.add("hidden");
			});

			// Update rounding style on reload buttons since swap button is absent
			document.getElementById("reloadStreamButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadGameButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadStreamButton").classList.add("rounded-l");
			document.getElementById("reloadGameButton").classList.add("rounded-l");
		}
	}
// Function for updating visible controls based on active view
Function for updating visible controls based on active view
Function for updating visible controls based on active view
function updateControls() {
		if (activeView == "swap") {
			swapViewButtonWrapperElements.forEach((e) => {
				e.classList.remove("lg:hidden");
				e.classList.remove("hidden");
			});
			document.getElementById("reloadStreamButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadGameButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadStreamButton").classList.remove("rounded-l");
			document.getElementById("reloadGameButton").classList.remove("rounded-l");
		}
		else {
			swapViewButtonWrapperElements.forEach((e) => {
				e.classList.remove("lg:hidden");
				e.classList.add("hidden");
			});
			document.getElementById("reloadStreamButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadGameButton").classList.remove("lg:rounded-l");
			document.getElementById("reloadStreamButton").classList.add("rounded-l");
			document.getElementById("reloadGameButton").classList.add("rounded-l");
		}
	}
function updateControls ( ) { if ( activeView == "swap" ) { swapViewButtonWrapperElements . forEach ( ( e ) => { e . classList . remove ( "lg:hidden" ) ; e . classList . remove ( "hidden" ) ; } ) ; document . getElementById ( "reloadStreamButton" ) . classList . remove ( "lg:rounded-l" ) ; document . getElementById ( "reloadGameButton" ) . classList . remove ( "lg:rounded-l" ) ; document . getElementById ( "reloadStreamButton" ) . classList . remove ( "rounded-l" ) ; document . getElementById ( "reloadGameButton" ) . classList . remove ( "rounded-l" ) ; } else { swapViewButtonWrapperElements . forEach ( ( e ) => { e . classList . remove ( "lg:hidden" ) ; e . classList . add ( "hidden" ) ; } ) ; document . getElementById ( "reloadStreamButton" ) . classList . remove ( "lg:rounded-l" ) ; document . getElementById ( "reloadGameButton" ) . classList . remove ( "lg:rounded-l" ) ; document . getElementById ( "reloadStreamButton" ) . classList . add ( "rounded-l" ) ; document . getElementById ( "reloadGameButton" ) . classList . add ( "rounded-l" ) ; } }
Function for updating visible controls based on active view
Function for updating visible controls based on active view
// If active view is swap // For each swapViewButton that is hidden on large displays // Show that control // Update rounding style on reload buttons since swap button is present // Not swap view // For each swapViewButton that is hidden on large displays // Hide that control // Update rounding style on reload buttons since swap button is absent