Compare commits
2 Commits
7fb2479033
...
7e6c0f0123
Author | SHA1 | Date |
---|---|---|
yutent | 7e6c0f0123 | |
yutent | 45e0ad2979 |
2
index.js
2
index.js
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue