Introduce ability to disable editing the UI (useful for hosted demos) (#48)
This commit is contained in:
@@ -31,6 +31,7 @@ export const TokenGeneratorProvider = ({
|
||||
const [shouldConnect, setShouldConnect] = useState(false);
|
||||
const connect = useCallback(
|
||||
async (mode: Mode) => {
|
||||
console.log("connecting", mode);
|
||||
if (mode === "cloud") {
|
||||
if (!generateConnectionDetails) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user