mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-13 02:48:31 +00:00
Compare commits
2 Commits
3fe0d88418
...
5fcc525cec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fcc525cec | ||
|
|
1e6eae1e14 |
@@ -45,7 +45,11 @@ var html = `<html>
|
||||
<meta charset="utf-8"/>
|
||||
<title>cam2ip</title>
|
||||
<script>
|
||||
ws = new WebSocket("ws://" + window.location.host + "/socket");
|
||||
if (location.protocol === 'https:') {
|
||||
ws = new WebSocket("wss://" + window.location.host + "/socket");
|
||||
} else {
|
||||
ws = new WebSocket("ws://" + window.location.host + "/socket");
|
||||
}
|
||||
var image = new Image();
|
||||
|
||||
ws.onopen = function() {
|
||||
@@ -78,7 +82,11 @@ var htmlWebGL = `<html>
|
||||
<script>
|
||||
var texture, vloc, tloc, vertexBuff, textureBuff;
|
||||
|
||||
ws = new WebSocket("ws://" + window.location.host + "/socket");
|
||||
if (location.protocol === 'https:') {
|
||||
ws = new WebSocket("wss://" + window.location.host + "/socket");
|
||||
} else {
|
||||
ws = new WebSocket("ws://" + window.location.host + "/socket");
|
||||
}
|
||||
var image = new Image();
|
||||
|
||||
ws.onopen = function() {
|
||||
|
||||
Reference in New Issue
Block a user