Skip to content

Commit

Permalink
Merge pull request #3 from GradientSurfer/fix-ui-port
Browse files Browse the repository at this point in the history
fix hardcoded ui port
  • Loading branch information
GradientSurfer authored Jan 10, 2024
2 parents 23104d7 + 32a8b40 commit 5817af8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions draw2img/ui/dist/assets/index-6cmW4xtb.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion draw2img/ui/dist/assets/index-RcOG8W0N.css

This file was deleted.

4 changes: 2 additions & 2 deletions draw2img/ui/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<script type="module" crossorigin src="/assets/index-r44gxu-d.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-RcOG8W0N.css">
<script type="module" crossorigin src="/assets/index-AQAbczng.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-6cmW4xtb.css">
</head>
<body>
<div id="app"></div>
Expand Down
4 changes: 2 additions & 2 deletions draw2img/ui/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ export default {
this.mru_colors.unshift("#000")
},
mounted() {
this.ws = new WebSocket(`ws://${window.location.hostname}:8079`);
const ws_port = parseInt(window.location.port) - 1
this.ws = new WebSocket(`ws://${window.location.hostname}:${ws_port}`);
const ws = this.ws;
this.timer = window.setInterval(() => {
Expand Down

0 comments on commit 5817af8

Please sign in to comment.