Skip to content

Commit

Permalink
Allow secure and insecure web sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Feb 9, 2025
1 parent 21c1372 commit d837271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/webui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes">
<link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon"/>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webui/src/CrudPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const CrudPage = () => {
const [isMultipleSort, setMultipleSort] = useState(true);

// socket
const { lastJsonMessage } = useWebSocket('ws://' + location.host + '/push/');
const { lastJsonMessage } = useWebSocket(`${location.protocol === 'https:' ? 'wss:' : 'ws:'}//${location.host}/push/`);

const menuFilters = {
vin: { operator: FilterOperator.OR, constraints: [{ value: '', matchMode: FilterMatchMode.CONTAINS }] },
Expand Down

0 comments on commit d837271

Please sign in to comment.