import React, { Component } from "react" import { Card, Button, Input, Form } from "antd" const layout = { labelCol: { span: 4, }, wrapperCol: { span: 16, }, }; const tailLayout = { wrapperCol: { offset: 4, span: 16, }, }; export class Settings extends Component { constructor(props) { super(props) this.state = { role: {} } } navigate(url) { this.props.history.push(url); } render() { console.log(this.state) return

Web interface settings

{ console.log("Saving settings",values) for(let key of Object.keys(values)){ localStorage.setItem(key, values[key].replace("https://", "wss://").replace("http://", "ws://")) } // Force refresh to apply changes document.location = document.location }} >
} }