Skip to content

Commit 5817af8

Browse files
Merge pull request #3 from GradientSurfer/fix-ui-port
fix hardcoded ui port
2 parents 23104d7 + 32a8b40 commit 5817af8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

draw2img/ui/dist/assets/index-6cmW4xtb.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

draw2img/ui/dist/assets/index-r44gxu-d.js draw2img/ui/dist/assets/index-AQAbczng.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

draw2img/ui/dist/assets/index-RcOG8W0N.css

-1
This file was deleted.

draw2img/ui/dist/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
1010
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
1111
<link rel="manifest" href="/site.webmanifest">
12-
<script type="module" crossorigin src="/assets/index-r44gxu-d.js"></script>
13-
<link rel="stylesheet" crossorigin href="/assets/index-RcOG8W0N.css">
12+
<script type="module" crossorigin src="/assets/index-AQAbczng.js"></script>
13+
<link rel="stylesheet" crossorigin href="/assets/index-6cmW4xtb.css">
1414
</head>
1515
<body>
1616
<div id="app"></div>

draw2img/ui/src/views/HomeView.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ export default {
210210
this.mru_colors.unshift("#000")
211211
},
212212
mounted() {
213-
214-
this.ws = new WebSocket(`ws://${window.location.hostname}:8079`);
213+
const ws_port = parseInt(window.location.port) - 1
214+
this.ws = new WebSocket(`ws://${window.location.hostname}:${ws_port}`);
215215
const ws = this.ws;
216216
217217
this.timer = window.setInterval(() => {

0 commit comments

Comments
 (0)