Compare commits

...

2 Commits

Author SHA1 Message Date
yutent 7e6c0f0123 fixed git 2023-11-14 18:44:55 +08:00
yutent 45e0ad2979 增加自动http协议 2023-11-14 18:43:50 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ std.out = function (...args) {
const HMR_SCRIPT = `
<script>
!(function http_hmr(){
var ws = new WebSocket(\`ws://\${location.host}/ws-http-hmr\`)
var ws = new WebSocket(\`\${location.protocol === 'https:' ? 'wss' : 'ws'}://\${location.host}/ws-http-hmr\`)
ws.addEventListener('open', function (r) {
if(http_hmr.closed){
delete http_hmr.closed

View File

@ -2,7 +2,7 @@
"name": "simple-http",
"displayName": "simple http",
"description": "🔥 简单的http服务器, 方便临时调试html",
"version": "1.5.1",
"version": "1.5.2",
"publisher": "yutent",
"author": "Yutent [@yutent]",
"icon": "logo.png",
@ -35,7 +35,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/yutent/http.server.git"
"url": "https://git.wkit.fun/yutent/http.server.git"
},
"keywords": [
"http.server",